List of controlled components in React
I am trying to have a list of components where each one takes user input and have a separate state.
I want then to be able to filter this list and get the components where for example “switch” is true. I have tried many things but it seems I am not able to figure out how to do this. Lastly I did this:
List of controlled components react
I am trying to have a list of components where each one takes user input and have a separate state.
I want then to be able to filter this list and get the components where for example “switch” is true. I have tried many things but it seems I am not able to figure out how to do this. Lastly I did this: