DEV Community

Shadow5084
Shadow5084

Posted on

Why is React not dynamic?

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)

Collapse
 
rameshkunwar profile image
rkun

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.