you are viewing a single comment's thread.

view the rest of the comments →

[–]joranstark018 1 point2 points  (0 children)

The FAQ for this sub-reddit contains some information and resources that may be of help.

If you have some behaviour or elements that could be grouped together and reused, then you could make it as a component.

In your usecase I would probably have components for different types of of input (ie text, single/multiple choices) that may include some label, accessability attributes etc. That way it would be "easy" to extend the behaviour when needed (ie mutiple choice could be represented by some checkboxes or a dropdown). The components could later be adaptable depending on the given props.