React integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores.
import { useStore } from '@nanostores/react'
import { $profile } from '../stores/profile.js'
export const Header = ({ postId }) => {
const profile = useStore($profile)
return <header>Hi, {profile.name}</header>
}
Made at Evil Martians, product consulting for developer tools.