This starter is aimed at users of React Bricks who need to integrate it into an existing React project, instead of starting from the Gatsby or Next.js starters.
It is very useful to understand how React Bricks components, hooks and function work.
To clone this project:
git clone https://github.com/reactbricks/vanilla-starter-reactbricksThis app is bootstrapped with create-react-app, with just two dependencies added:
@reach/routerreact-bricks
The admin directory contains the Admin dashboard components (they are just a thin wrapper around React Bricks' exported components)
In the root directory you find two Viewer components to show content in your front-end:
Vieweruses React Bricks'usePagehook to fetch the page contentViewerFetchuses React BricksfetchPagefunction to fetch the page content
Please, read our documentation at Reactbricks.com.