Skip to content


This is the binding for the Solid view framework. The reason to use these bindings is the Reatom ecosystem. We have a lot of packages and helpers to handle basic UI logic, including network caching, data persistence, and complex flow description.


Terminal window
npm i @reatom/npm-solid-js

Also, you need to be installed @reatom/core or @reatom/framework and solid-js.

Read the core docs first for production usage.



Try it now:

Setup reatomContext


The first time, you need to add the Reatom provider to the root of your application.

import { createCtx, connectLogger } from '@reatom/framework'
import { reatomContext } from '@reatom/npm-solid-js'
const ctx = createCtx()
() => (
<reatomContext.Provider value={ctx}>
<App />

useAtom hook


Now you will be able to use Reatom hooks.

import { atom } from '@reatom/framework'
import { useAtom } from '@reatom/npm-solid-js'
const countAtom = atom(0, 'countAtom')
const App: Component = () => {
const [count, setCount] = useAtom(countAtom)
return (
Count value is
<button onClick={() => setCount((c) => c + 1)}>{count()}</button>

useCtx hook


If you need to get the ctx from the context, you could use the shortcut hook useCtx. With ctx in the component body, you can manipulate subscriptions more flexibly with Solid’s onMount, onCleanup, and so on.



Dynamic atom creation


This example shoes how to use atomization to improve editable fields performance, persists it to localStorage.,src/App.tsx