JSX
A JavaScript syntax extension that allows HTML-like markup to be written within JavaScript code, commonly used for component definitions in front-end frameworks such as React.
Timeline (last 90 days)
SolidJS's API design stays close to React usage habits, such as using JSX and the Hooks-style createEffect, to reduce migration costs.
Safescript is a subset of TypeScript that supports JSX but removes unbounded loops, eval and dynamic host strings.
React's JSX rendering automatically escapes strings before inserting them into the DOM, thereby eliminating most traditional XSS attack paths.
Large language models were exposed to massive amounts of React code during pre-training, so their ability to generate valid JSX is far stronger than their ability to call APIs step by step; using the render tool to generate an entire component tree in a single call saves round trips and reduces the probability of errors compared to operating node by node.
MDX is an extended format that embeds JSX components within Markdown, promoted by communities including Gatsby and Vercel, and emerged around 2018.
Desktop editors that support MDX need to parse JSX syntax and handle component references, making the implementation complexity higher than that of plain Markdown.
All Facts (6)
SolidJS's API design stays close to React usage habits, such as using JSX and the Hooks-style createEffect, to reduce migration costs.
50%UnverifiedSafescript is a subset of TypeScript that supports JSX but removes unbounded loops, eval and dynamic host strings.
50%UnverifiedReact's JSX rendering automatically escapes strings before inserting them into the DOM, thereby eliminating most traditional XSS attack paths.
50%UnverifiedLarge language models were exposed to massive amounts of React code during pre-training, so their ability to generate valid JSX is far stronger than their ability to call APIs step by step; using the render tool to generate an entire component tree in a single call saves round trips and reduces the probability of errors compared to operating node by node.
50%UnverifiedMDX is an extended format that embeds JSX components within Markdown, promoted by communities including Gatsby and Vercel, and emerged around 2018.
50%UnverifiedDesktop editors that support MDX need to parse JSX syntax and handle component references, making the implementation complexity higher than that of plain Markdown.
50%