react-event-storm
TypeScript icon, indicating that this package has built-in type declarations

5.1.7 • Public • Published

Publish codecov

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

Technical stack

  • React ^16.8.0(hooks support)

Installation

To install the library run:

# npm
npm i react-event-storm

# yarn
yarn add react-event-storm

:::caution The library is using event storm as a peer dependency, so you need to install it. :::

Simple example

import { createStorm } from 'event-storm';
import { useStorm } from 'react-event-storm';

const defaultState = {
  name: 'React Event Storm',
}

const storm = createStorm(defaultState);

function Component() {
  const { name } = useStorm(storm);
  return <span>This is {name}</span>
}

See it in action

Examples:

Documentation

Package Sidebar

Install

npm i react-event-storm

Weekly Downloads

224

Version

5.1.7

License

MIT

Unpacked Size

11.3 kB

Total Files

9

Last publish

Collaborators

  • artur93gev