Skip to content

Instantly share code, notes, and snippets.

View ConradSollitt's full-sized avatar
😀
I may be slow to respond.

Conrad Sollitt ConradSollitt

😀
I may be slow to respond.
View GitHub Profile
@ConradSollitt
ConradSollitt / jsx-transformer.js
Last active December 10, 2020 07:59
Convert JSX to JS - JSX Transformer / Compiler / Transpiler
/**
* This file is based on the DataFormsJS jsxLoader which is a
* small browser based compiler for JSX / React.
*
* The main file is intended for browser use with a <script> tag
* so needed portions of the code have copied here so that it can
* be optimized with webpack and node using a simple API.
*
* @link https://www.dataformsjs.com
* @link https://github.com/dataformsjs/dataformsjs/blob/master/js/react/jsxLoader.js