4 ms·
That's an optional step for JSX cross-compilation. It's a language plugin; nothing really to do with frameworks or libraries.
by robertlagrant 2y ago
That's an optional step for JSX cross-compilation. It's a language plugin; nothing really to do with frameworks or libraries.
- deleted 2y ago[deleted]
- tmtwhn 2y agoThey're going further than jsx transpilation[1] [1] https://react.dev/learn/react-compiler https://react.dev/learn/react-compiler
- zdragnar 2y agoNothing in that is actually doing what a compiler does above and beyond what babel, swc and esbuild are capable of. What they've added is wrapping your code in more memoization functions, basically. All stuff that doesn't fundamentally transform the code, aside from inserting more `useMemo` and the like. The JSX macro - which is itself already optional but everyone uses it - is just that, a handy macro with implementations available in every common bundler and transpiler out there.