DEV Community

Abu2505
Abu2505

Posted on

How to use the multi checkbox in reactjs

Hii I am facing the issue with the below code, Please anyone help me with this...

this.state = {

categories: [
{id: 1, value: "item 1", description:"Test Categorey 1"},
{id: 2, value: "item 2", description:"Test Categorey 2"},
{id: 3, value: "item 3", description:"Test Categorey 3"},
{id: 4, value: "item 4", description:"Test Categorey 4"}
],
checkedItems: []
}
}

handleChangecheck = (event) => {
}

    <Step3 currentStep={this.state.currentStep} handleChange={this.handleChangecheck} items={this.state.categories} 
    checkedItems={this.state.checkedItems}/>

    <br/> <br/> 
    {this.previousButton()} {this.nextButton()} {this.finishButton()}
  </form>

------------------------component 2 ---------------

{this.props.items.map((d, i) => {

return






{d.value}


{d.description}


{}








})}

Top comments (0)