On this page
Solid
Use @nanostores/solid and useStore() composable function
to get store’s value and re-render component on store’s changes.
import { useStore } from '@nanostores/solid'
import { $profile } from '../stores/profile.js'
export function Header({ postId }) { const profile = useStore($profile) return <header>Hi, {profile().name}</header>}Imported from the Nano Stores README for version 1.5.5. Improve this page there.