Skip to main content

6 docs tagged with "bindings"

View All Tags

Overview

The React Event Storm is providing a lightweight, minimal abstraction for the Event Storm library

Subscription types

The Event Storm is presenting 3 levels of subscription: active subscription, passive subscription, condition-based subscription

Supported bindings

The library officially supports the following bindings. React - The library provides simple hooks on top of the Event Storm functionality. The binding is about 0.4kb

useModels

The Event Storm models also can be used with React components. useModels can receive a models array, subscribe to them and return their last states

usePublish

The publish hook, is simply re exporting of the storm.publish method. Arguments: storm (the storm object, for which the publish method will be provided)

useStorm

The storm inside react components can be used with the help of useStorm hook. Arguments: store, selectFragment, options