Saga-Cookie ·
Use Cookie as Redux state. 🍪
Installation
npm install saga-cookie
Configuarition
Example
Usage
Render Cookie from Props
propscookiehello
Dispatch Cookie
setCookie is just like React
's setState
import setCookie from 'saga-cookie'; // set-cookie; ; // delete cookie;
Force Update
You should avoid to do manual operation to Cookies when using saga-cookie,
use forceUpdate
to reload cookies from BOM
;
// force saga-cookie update;