Article From:https://segmentfault.com/q/1010000012144554
Question:

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 state.map (item =>< div> < /div>))}

Leave a Reply

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