Custom CPart: JSXTemplate Demo

“Modulo + Babel transpiling + React-style JSX”

In this example, we load the Babel.js standalone script (browser-compatible), along with a custom JS file that "patches" the Modulo AssetManager to transpile JS assets using Babel before including or bundling.

This enables us to include the custom JSXTemplate CPart, that lets you use JSX syntax to mix HTML-templating with embedded JavaScript. It also allows attachment of embedded or arbitrary JavaScript code.