Why is it so complicated to add dynamicly elements to a React-Component?
What i mean:
JS:
- let div = document.createElement("div");
- container.appendChild(div);
React:
- {this.state.show?: "nothing to show"}
Do you know any solution for my struggeling with React?
Top comments (1)
Your question does not make any sense. The vanilla JS and React code you posted are totally different. Will be nice if you can elaborate.