Installation
Fastest way to useCloudState.io with your React Web project is to install the following two packages:
npm
yarn
1
npm install @usecloudstate/react-core
2
npm install @usecloudstate/react-web # optional
Copied!
1
yarn add @usecloudstate/react-core
2
yarn add @usecloudstate/react-web # optional
Copied!
react-core package contains the core functionality.
react-web package contains some sensible defaults for React Web, including a fully configured login modal that will authenticate the users. This is optional.
For more advanced use cases, like customizing the authentcation experience, we recommend just using the react-core package, and configuring the experience to your liking.
Copy link