A Babel plugin that transforms JSX into RE:DOM element creation calls (el, text). Current stable version is 3.0.6. The plugin converts JSX syntax to RE:DOM's el() function calls, with support for component classes and this-assignment for direct DOM access. It requires Babel 7+ and is used alongside @babel/plugin-transform-react-jsx (or similar) with a pragma set to 'el'. Unlike generic JSX-to-hyperscript transforms, this plugin is specifically optimized for RE:DOM's reactive DOM patching and component lifecycle.
npm install babel-plugin-transform-redom-jsxVerified import paths — ran on the pinned version, not inferred.
Shows minimal Babel config and a RE:DOM component using JSX transformed to el() calls.
Update JSX to standard component usage; see README for examples.
Upgrade to Babel 7 or use v1.x.
Update JSX to use standard component pattern from v2.0.0+.
Add both plugins to Babel config as shown in README.
npm install --save-dev babel-plugin-transform-redom-jsx and ensure .babelrc is correct.
Add 'import { el } from "redom";' to your file.Add @babel/plugin-transform-react-jsx with pragma 'el' to your plugins.