Skip to content

A starter with vanilla React, useful to integrate React Bricks into an existing React app.

License

Notifications You must be signed in to change notification settings

ReactBricks/vanilla-starter-reactbricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Bricks starter vanilla React

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.

🚀 Quick start

To clone this project:

git clone https://github.com/reactbricks/vanilla-starter-reactbricks

📦 What's inside

This app is bootstrapped with create-react-app, with just two dependencies added:

  • @reach/router
  • react-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:

  • Viewer uses React Bricks' usePage hook to fetch the page content
  • ViewerFetch uses React Bricks fetchPage function to fetch the page content

📖 Documentation

Please, read our documentation at Reactbricks.com.

About

A starter with vanilla React, useful to integrate React Bricks into an existing React app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published