Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

README.md

32 lines832 Bytes

TanStack React DB
# @tanstack/react-db

React hooks for TanStack DB. See TanStack/db for more details.

import { useLiveQuery } from '@tanstack/react-db'

function TodoList() {
  const { data: todos } = useLiveQuery({
    query: (q) => q.from({ todo: todoCollection }),
  })

  return todos.map((todo) => <div key={todo.id}>{todo.text}</div>)
}