React
Components
Subscription()
Declarative component that subscribes to a reactive value and passes it to a render function. Re-renders when the value (or selected value) changes. Use when you prefer a component API over the useSubscription hook.
Examples
Basic usage
'use client'
import { } from 'seitu/web'
import { } from 'seitu/react'
import * as from 'zod'
const = ({
: 'sessionStorage',
: { : .(), : .() },
: { : 0, : '' },
})
export default function () {
return (
< ={}>
{() => <>{.}</>}
</>
)
}With selector
'use client'
import { } from 'seitu/web'
import { } from 'seitu/react'
import * as from 'zod'
const = ({
: 'sessionStorage',
: { : .(), : .() },
: { : 0, : '' },
})
export default function () {
return (
< ={} ={() => .}>
{() => <>{}</>}
</>
)
}