Use Babel to compile JSX to virtual DOM other than React

Claudio Procida
Nov 17, 2015 · 1 min read
{ "plugins": [["transform-react-jsx", { "pragma": "dom" }]] }
<Nav userid="claudiopro"/>
React.createElement(Nav, { userid: "claudiopro" });
dom(Nav, { userid: "claudiopro" });

Claudio Procida

Written by

Full stack web developer with a keen interest for the open web platform, privacy, security, and IoT. Former Amazonian, former IBMer. All views my own.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade