Skip to content

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:

Terminal window
npx degit github:artalar/reatom-react-ts new-reatom-app
cd new-reatom-app
npm install
npm run dev

Add Reatom to an existing project

#

Install @reatom/core if you are looking for a minimal and framework-agnostic state manager:

Terminal window
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.