@tomic/react | @tomic
@tomic/react Documentation
Render, fetch, edit and delete Atomic Data.
Re-exports all of @tomic/lib.
How to use
- Add
@tomic/reactand to yourpackage.jsondependencies. - Start by initializing a Store
const store = new Store()form@tomic/lib. - Wrap your React application in a
<StoreContext.Provider value={store}>component. - Add useResource and useValue hooks (e.g. useArray) to your React components.
- Add User and session management using the useCurrentAgent hook
For example usage, see this CodeSandbox template.