1this.state.allItems.map((res, index) => {
2 return(
3 <CheckBox
4 color="green"
5 style={{ marginRight: 20, }}
6 checked={this.state.checked[index]}
7 onChange={()=> {
8 let { checked } = this.state;
9 checked[index] = !checked[index];
10 this.setState({checked});
11 }
12 }
13/>
14