Setup
Start from React template
#Here is a minimal project template with TypeScript, Vite, React and Reatom: reatom-react-ts
.
You can use degit
to quickly download it:
npx degit github:artalar/reatom-react-ts new-reatom-appcd new-reatom-appnpm installnpm run dev
Add Reatom to an existing project
#Install @reatom/core
if you are looking for a minimal and framework-agnostic state manager:
npm install @reatom/core
Or use @reatom/framework
which includes most of the Reatom ecosystem and is recommended for most applications.
For a guide on integration with a supported view framework, see the relevant adapter’s docs:
ESLint
#If you are using ESLint, see @reatom/eslint-plugin
for a set of Reatom-specific rules.