frank
06/13/2020, 2:12 PMturansky
06/13/2020, 7:29 PMchild
?frank
06/13/2020, 8:49 PM<ul>
list and need that every time I call onclick
event is append <li>
element in my list.
child only define child element but not append in nodeList I have managed to do it with React.state but i need declare initvalue of state with my <li> elements. Some simple way to convert HTMLCollection to array or any alternative to React.state??child
turansky
06/13/2020, 10:04 PMrender
method.turansky
06/13/2020, 10:04 PMfrank
06/14/2020, 5:12 PM@turansky, Possibly you don't need React? :)My list is react component and need modify DOM for add new item. I understand that I have to use react for modify virtual DOM.
turansky
06/14/2020, 5:34 PMturansky
06/14/2020, 5:35 PMfrank
06/15/2020, 11:19 PM