Article From:

react+antdHow do you realize it? Cry for help!!!

There is a set of checkbox, each of which represents one type.

Tick one, add a row to the table in the bottom, cancel the check and delete the type row.

Answer 0:

If it’s just a one-to-one correspondence, I wrote a demo reference.

Answer 1:

checkbox groupThe array that should be returned, if not, you combine it, and the render function loops the array:

  The selected array (item =>< div> < /div>))}

Leave a Reply

Your email address will not be published. Required fields are marked *