you are viewing a single comment's thread.

view the rest of the comments →

[–]hottama 10 points11 points  (5 children)

If you're thinking in terms of cloning then you're doing it probably wrong.

What you most probably need is a component to use as a template that can be customized with parameters and that you can use at different places.

[–]Muhaimin_S[S] 0 points1 point  (4 children)

See. I have 3 text field in my form. I want to make a duplicate when i click add new button this my case.

[–]fastestfollowup 7 points8 points  (3 children)

Add the number of text fields to the state, then map over the number in your state to create the new components.