Reactive And Atomic State Manager For React – tagged-state

Description:

Experimental reactive and atomic state manager. Inspired by SolidJS and S.js.

How to use it:

1. Install and import the component.

# NPM
$ npm i react-tagged-state

import { createSignal, useSignal } from ‘react-tagged-state’;

const counter = createSignal(0);
const Counter = () => {
  const count = useSignal(counter);
  return <button onClick={() => counter((value) => value + 1)}>{count}</button>;
};

Preview:

Reactive And Atomic State Manager For React

Add Comment