UNPKG

kosha

Version:

⚡A modern, lightweight, fast, and powerful global state management library for modern React.js projects.

2 lines (1 loc) 143 B
import{produce as s}from"immer";var p=T=>(t,r)=>({...T((e,o)=>{let S=r(),a=e instanceof Function?s(S,e):e;o?t(a,!0):t(a)},r)});export{p as a};