Module @tomic/react

@tomic/react Documentation

Render, fetch, edit and delete Atomic Data. Re-exports all of @tomic/lib.

github repository

How to use

  • Add @tomic/react and to your package.json dependencies.
  • Start by initializing a Storeconst 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.

Index

Modules

Enumerations

Classes

Interfaces

Type Aliases

Variables

Functions

Generated using TypeDoc