How to add a component dynamically by react

The

page contains a component and an add button, how to copy this component by clicking the add button. Do you use the API of React.cloneElement ()?
Click the blue button in the picture to add a black component

Nov.02,2021

is not required.

  

you can use rc-notification

Menu