These guides cover how to use the ui-react
module and use React hooks and components to easily build reactive user interfaces with TinyBase.
See also the Countries demo, the Todo App demos, and the TinyDraw demo.
To build React-based user interfaces with TinyBase, you will need to install the ui-react
module in addition to the main module, and, of course, React itself.
There are reactive hooks in the ui-react
module for accessing every part of a Store
, as well as more advanced things like the Metrics
and Indexes
objects.
The reactive components in the ui-react
module let you declaratively display parts of a Store
.
The ui-react
module includes a context provider that lets you avoid passing global objects down through your component hierarchy.