|
|
|
|
|
by JasonSage
672 days ago
|
|
I agree with the sibling comment that this really depends on the user. To take a different approach: JSX is just a different DSL to the createElement function call pattern (see Preact.h for example) and all of the benefits you’re describing come from the framework and runtime. More concisely: JSX is just an alternate function call syntax with some useful applications. For example at my last company we used JSX to make test data factories that had an XML-like look but were using a builder-pattern in the element creation that was able to make contextual decisions about what was in the final data. Nothing to do with React, DOM, or inability to express the same thing declaratively without JSX. |
|
Thats really interesting, can you elaborate more?
For example did you use a specific JSX compiler? Was that written in house or used a 3rd party library?