Hi, I have a question about states. Is there anyway to implement the typical react hook state like “useState” for front end purposes for a specific component, like you would on a “normal” react app? (e.g. presenting components or storing input values etc)?
Never mind it works now!
Hi @albin
Glad you managed to make it work
Yes, of course. In a frontity app you will have:
- A “global” state that is also grouped in different namespaces → the “theme” namespace is the place to work with variables you want to use across different components
- A “local” state (component scope) that can be implemented with hooks like
useState
→ these variables are the right option when the data doesn’t need to be shared w/ any other (parent or sibling) component