New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@virtuoso.dev/reactive-engine-react

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@virtuoso.dev/reactive-engine-react

React bindings for the Virtuoso reactive engine.

Source
npmnpm
Version
0.2.3
Version published
Weekly downloads
865
-42.72%
Maintainers
2
Weekly downloads
 
Created
Source

Reactive Engine React

@virtuoso.dev/reactive-engine-react provides React bindings for @virtuoso.dev/reactive-engine-core: an EngineProvider component and hooks for reading cell values and publishing into nodes from components.

Installation

npm install @virtuoso.dev/reactive-engine-core @virtuoso.dev/reactive-engine-react

Quick Example

import { Cell } from '@virtuoso.dev/reactive-engine-core'
import { EngineProvider, useCellValue, usePublisher } from '@virtuoso.dev/reactive-engine-react'

const count$ = Cell(0)

function Counter() {
  const count = useCellValue(count$)
  const setCount = usePublisher(count$)

  return <button onClick={() => setCount(count + 1)}>{count}</button>
}

export function App() {
  return (
    <EngineProvider>
      <Counter />
    </EngineProvider>
  )
}

Hooks

  • useCellValue / useCellValues - subscribe to one or several cells
  • useCell - read a cell value and get a publisher for it
  • usePublisher - get a publisher function for a node
  • useEngine / useEngineRef - access the engine instance from context
  • useRemoteCell, useRemoteCellValue, useRemoteCellValues, useRemotePublisher - work with cells from another engine instance

License

MIT

FAQs

Package last updated on 10 Jun 2026

Related posts