Structuring your App

Keeping things simple, we create a folder like state to hold our stores.

src
โ”‚ ...
โ”‚ state
โ”‚ โ”‚ index.ts
โ”‚ โ”‚ todos.ts
โ”‚ โ”‚ ...
โ”‚ ...

Some notes:

  • index.ts is the root store
    • contains all the stores
    • is used for connecting components
  • todos.ts and others are individual stores