Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/liammartens/simple-react-signal


https://github.com/liammartens/simple-react-signal

Last synced: 11 days ago
JSON representation

Awesome Lists containing this project

README

        

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

## Usage
```jsx
import { createSignal } from 'simple-react-signal';

const mySignal = createSignal('foo');

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

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

return (
Set bar
);
}
```