immerjs / immer

Create the next immutable state by mutating the current one

Home Page:https://immerjs.github.io/immer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[docs] [examples] useImmer To-do list example is using wrong object property for `checked`

navidmafi opened this issue Β· comments

πŸ› Bug Report

sorry for not following the issue template since this is a very minor issue

Currently useImmer example which is here uses todo.finished for checkboxes checked value which is wrong and should be changed to todo.done

https://codesandbox.io/s/use-immer-bvd5v?file=/src/index.js

image

should be changed to

image