Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One other addendum:

The "store" is the object returned from `createStore()`, which has the `dispatch`, `getState`, and `subscribe` methods.

The store object contains your "state" value, which could be a simple number by itself, an array, an object, or whatever else you return.

Typically that top level value _is_ an object with other values nested inside of it, and _that_ is your "state tree". So, the "store" contains the "state tree", and they are not the same thing.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: