React input checkbox select all component

后端 未结 3 1810
野的像风
野的像风 2021-01-02 16:19

I\'m trying to build a proper react input checkbox select all component. The idea is that there is a component and

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 17:16

    There is a simple package that solves this problem grouped-checkboxes.

    In your case the render function will look like this:

    render: function () {
      return (
        
          Select All: 



    ) }

    More examples see Codesandbox example

提交回复
热议问题