This will set you up with a standard Create React App which includes a fauna folder and a file with some basic methods to get you started working with faunadb.
This package is a script that can be used with CRA - Create React App
To use you run the regular CRA command and append --scripts-version fauna-nf
create-react-app new-app-name --scripts-version fauna-nf
Prefer TypeScript? append --typescript
create-react-app new-app-name --scripts-version fauna-nf --typescript
After it completes you will need to run
yarn add faunadb
And then follow instructions in the fauna\index.js file
Rather than maintain a full fork of the project and include the yarn add faunadb command, this scripts option is lightweight way to get started with some basic boiler plate. As the author dives into more faunadb this package will be updated with more general methods.
Now updated for use with FaunaDB 2.7
("Collections" have replaced "Classes")
This package includes scripts and configuration used by Create React App.
Please refer to its documentation: