Shaph
Redux like State Management with Hooks and Context
Installation
# install via npm $ npm install shaph# or yarn $ yarn add shaph
Usage
;;; const state = view: theme: 'light' user: authenticated: false cool: true name: undefined ; { } { } const rootReducer = ; const Provider useShaph = ; { const state = ; return <div className=stateviewtheme> stateuserauthenticated && <h2>Hello stateusername</h2> </div> ;} ;
Shaph is also written in TypeScript providing Types for better Developer Experience
combine;preparereducer, initialState;