Patterns
Many atoms vs. one large store
Legend-State can be used however you want. If your team prefers one large state object containing all app state, that’s great! Or you may prefer to have multiple different individual atoms in their own files, which works too. Here’s some examples of ways to organize your state.
One large global state
Multiple individual atoms
Within React components
You can use useObservable
to create state objects within React components, then pass them down to children through either props or Context.