Documentation Index
Fetch the complete documentation index at: https://mintlify.com/reatom/reatom/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Reatom is a framework-agnostic library with various adapters for different frameworks. By default, all docs and examples are written for React, but you can reuse each code example with any other framework.Package Managers
Install Reatom using your preferred package manager:The examples above install both
@reatom/core and @reatom/react. If you’re using a different framework, replace @reatom/react with the appropriate adapter (e.g., @reatom/vue, @reatom/solid).Framework-Specific Installation
React
For React applications, install the core package and React adapter:Vue
For Vue applications:Solid
For Solid applications:Other Frameworks
Reatom also supports:- Preact:
@reatom/preact - Lit:
@reatom/lit - Svelte:
@reatom/svelte - Angular:
@reatom/angular
Using a Template
For a fast start, you can use the official Reatom template with React and Mantine:- Pre-configured React setup
- Mantine UI components
- Example features with search, filtering, and pagination
- Best practices and file structure
Core Only
If you’re building a framework-agnostic library or want to use Reatom without any UI framework:Package Size
Reatom is extremely lightweight:- Core package: Just 2 KB gzipped
- Tree-shakeable: Only pay for what you use
- Zero dependencies: No bloat in your bundle
TypeScript Support
Reatom is written in TypeScript and provides excellent type inference out of the box. No additional type definitions are needed.Verify Installation
To verify that Reatom is installed correctly, create a simple test file:test.ts
Next Steps
Quick Start
Build your first counter app with Reatom
Core Concepts
Learn about atoms, computed, and effects