K
K
KnightForce2017-02-14 21:40:44
JavaScript
KnightForce, 2017-02-14 21:40:44

How to clone an element in React.js?

How to clone an element in React.js?
It comes to mind:
1) Make a wrapper.
2) Store data about each child element in storage.
3) Update storage.
4) Redraw the DOM.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrei Smirnov, 2017-02-14
@KnightForce

React.cloneElement()?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question