Should stuff like lists be on components or directly in a page?

Also if the answer is in a component, where would I put the code needed to reorder a list for example, in the component code or page code?

Thanks

I would say the answer depends on whether you are going to be able to reuse this “stuff” in more than one place. If so, then a component probably makes more sense. If you do go with the component route, all the code for doing anything the component needs to care about has to be in the component; otherwise it’s not truly self-contained.

And if I had a list that I want to be able to reorder and that list is in a component.

Where would I place the code, on page or on component?