# JSX instead of h (createElement) function in widgets and other places

**URL:** <https://meta.discourse.org/t/jsx-instead-of-h-createelement-function-in-widgets-and-other-places/150040>\
**Category:** Development\
**Created:** [May 1, 2020, 9:46am UTC](https://meta.discourse.org/t/jsx-instead-of-h-createelement-function-in-widgets-and-other-places/150040 "2020-05-01T09:46:39Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![zcuric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zcuric/32/292837_2.png) [@zcuric](https://meta.discourse.org/u/zcuric)\
**Post date:** [May 10, 2020, 1:38pm UTC](https://meta.discourse.org/t/jsx-instead-of-h-createelement-function-in-widgets-and-other-places/150040/14 "2020-05-10T13:38:50Z")

</div>

An update - I’ve managed to make a `ThemeField` babel, which is used to read `babel.config.json` from theme and inject plugins into `Babel.transform` in the `discourse_js_processor`.

I hope go get the PR out soon just to show as a prof of concept. A warning - It will be a huge mess 😅.

PS. Ruby is so easy to work with 🤩

---

_[View the full topic](https://meta.discourse.org/t/jsx-instead-of-h-createelement-function-in-widgets-and-other-places/150040)._
