3 ms·
Exactly. Loops and conditionals should give you enough power. But in React you can arbitrarily change HTML because the render method returns a string to be com
by tipiirai 12y ago
Exactly. Loops and conditionals should give you enough power.
But in React you can arbitrarily change HTML because the render method returns a string to be compared to the earlier situation.
A tag name can change for example (which you rarely need).
- masklinn 12y ago> But in React you can arbitrarily change HTML because the render method returns a string to be compared to the earlier situation. I'm pretty sure the render method returns a vdom node (which the library can then diff and merge into the actual DOM)