3 ms·
Interesting how the embedded XML syntax resembles today's JSX, I wonder if it took inspiration from it.
by naranha 5y ago
Interesting how the embedded XML syntax resembles today's JSX, I wonder if it took inspiration from it.
- Marazan 5y agoFor me the fore-bearer of JSX is Flex's MXML.
- deleted 5y ago[deleted]
- reaktivo 5y agoIt's listed as Prior Art on JSX's Github https://facebook.github.io/jsx/#prior-art https://facebook.github.io/jsx/#prior-art
- slver 5y agoThey're both XML-like. But they serve completely different purpose and have different semantics. E4X produces a standalone (pure markup) mutable XML node tree intended to encode data for cross-platform communication and data exchange. JSX produces an non-standalone (links to JS symbols, functions, etc.) node tree intended to encode DOM fragments for UI updates. E4X is not needed today, because we use JSON for data exchange. So E4X is now simply... JS objects.
- eyelidlessness 5y agoAnd JSX is renderer-agnostic (and even implementation-agnostic). You can use it to render anything from CLIs to smart TV interfaces.
- slver 5y agoI'm curious what I'd use JSX for in a CLI :)
- eyelidlessness 5y agoThe same single direction data flow/declarative render model as you’d use for DOM! The most prominent example is Ink: https://github.com/vadimdemedes/ink https://github.com/vadimdemedes/ink