Seitu - Type-Safe Utilities
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

/app/page.tsx
'use client'

import {  } from 'seitu/web'
import {  } from 'seitu/react'
import * as  from 'zod'

const  = ({
  : 'sessionStorage',
  : { : .(), : .() },
  : { : 0, : '' },
})

export default function () {
  return (
    < ={}>
      {() => <>{.}</>}
    </>
  )
}

With selector

/app/page.tsx
'use client'

import {  } from 'seitu/web'
import {  } from 'seitu/react'
import * as  from 'zod'

const  = ({
  : 'sessionStorage',
  : { : .(), : .() },
  : { : 0, : '' },
})

export default function () {
  return (
    < ={} ={() => .}>
      {() => <>{}</>}
    </>
  )
}

On this page