Skip to content

Tag: react-hooks

Passing a component to the useState() hook

I’m trying to make a system where my App component’s state stores another component, which it will render. Any component should be able to update this state, forcing the App component to re-render. I know how to make the state accessible by any component, but I’m having some issues with rend…