remini
remini copied to clipboard
Easy to learn global state for React
The central part of any complex application is stateful logic. Application has a state and a logic that uses and modifies the state. For example, according to Redux architecture the...
```javascript const activeRoute = box(); ```
```javascript // ./custom.store.ts import { wrap, box, val } from "remini"; export const CustomStore = () => { const initialState = { address: {}, user: {} }; const $store =...
Global state for React with three functions - Super simple - No Context API - No boilerplate similar: https://www.youtube.com/watch?v=3YKlDXqX9r8
```javascript export const useCustom = hook((arg: any) => { const a = read($a); const b = read($b); return { a, b } }) ```
```javascript import { useBox } from '@remini/react'; ``` ```javascript import { useBox } from '@remini/preact'; ```