Seitu - Type-Safe Utilities
React

Hooks

useSubscription

Use this hook to access a subscription for any function that implements the Subscription interface.

Example

/app/page.tsx
'use client'

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

export default function () {
  const  = (({
    : 'test',
    : 0,
    : .(),
  }))

  return <>{}</>
}

Example

/app/page.tsx
'use client'

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

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

export default function () {
  const  = ()

  return <>{}</>
}

Example

/app/page.tsx
'use client'

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

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

// Usage with selector, re-renders only when count changes
export default function () {
  const  = (,  => .)

  return <>{}</>
}

On this page