1.8.0 • Published 8 months ago

simple-react-signal v1.8.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

simple-react-signal

This is a simple signal library to create reactive values outside of the React lifecycle.

Usage

import { createSignal } from 'simple-react-signal';

const mySignal = createSignal('foo');

export function App() {
  const [value, setValue] = mySignal.use();

  const handleSetBar = () => {
    setValue('bar');
  }

  return (
    <button onClick={handleSetBar}>Set bar</button>
  );
}
1.8.0

8 months ago

1.6.1

8 months ago

1.6.0

8 months ago

1.5.0

8 months ago

1.4.0

8 months ago

1.3.0

8 months ago

1.2.1

8 months ago

1.2.0

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.0

8 months ago