Skip to content

Initial commit

Choose a tag to compare

@franciscop franciscop released this 09 Jul 15:28
· 249 commits to master since this release

Initial commit based on what I learned from atama and React Hooks:

// Initial API:
import Store, { useStore, State } from 'statux';

const { user, setUser, books, setBooks, ... } = useStore();
<State>
  {({ user, setUser, books, setBooks, ... }) => (
    <div>{user.name}</div>
  )}
</State>