React Checkbox not sending onChange

后端 未结 7 1405
夕颜
夕颜 2020-12-04 16:19

TLDR: Use defaultChecked instead of checked, working jsbin.

Trying to setup a simple checkbox that will cross out its label text when it is checked. For some reason

7条回答
  •  醉酒成梦
    2020-12-04 16:39

    In material ui, state of checkbox can be fetched as

    this.refs.complete.state.switched
    

提交回复
热议问题