|
|
|
|
|
by hungerstrike
3206 days ago
|
|
> And why the hell you have to write code in JS that will be ultimately represented as HTML? I only use React for React-Native, so my JSX gets turned into native objects. 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. I've never, ever seen a UI designer or a high level DSL (like HTML) that works better than code for non-trivial programs. With JSX, HTML has finally caught up to the rest of the GUI programming world. |
|
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.