As an alternative to defining the HTML a Clip’s via EJS templates, you can use JSX. In order to do so you need to pass your HTML as a function (and not just as string as you normally do with EJS) that takes as argument the initParams.
In order to use JSX in your project you need to add
- @babel/plugin-syntax-jsx and
- @babel/plugin-transform-react-jsx on your package.json.
Once you do so on your “plugins” key of your .babelrc file you need to put:
and you’re ready to go.