Loading homepage
Input: const base={user:{score:1},settings:{dark:true}}; const next=produce(base,draft=>{draft.user.score++;}); [next.user.score,next.settings===base.settings,base.user.score] Output: [2,true,1]
Input: produce([1,2],draft=>{draft.push(3);}) Output: [1,2,3]
Implement the exported API in index.js or index.ts using the documented contract.