Categories
Mastering Development

Dynamically create components that takes in setState

I have to use a Select component that takes in a value argument and a setValue argument. Where I need to pass in a state and a set state. eg: const [value, setValue] = useState(); … return ( … <Select value={value} setValue={setValue} options={optionsArray}/> ) Now I need to dynamically create multiple of these Select components […]