|
|
|
|
|
by vladimir-y
3203 days ago
|
|
> Have you ever written a non-web program though? The default mode for almost all native GUI kits is for developers to define the UI in code. Surely I have. I do understand that with JSX you get the valid template model, not the raw HTML that will need to be validated and converted into the template model then. That's actually what I meant writing above message - it makes React's life easier. |
|
It makes the programmers life easier by allowing JavaScript, not just React, to reason about GUI components before they are rendered.
You can use JSX with something other than React if you want to. React just happens to be the most popular kit that is using it right now.