Some useful examples of monkey patching React
To install dependencies & run a dev server run the following commands.
npm install
npm start
This will allow you to use JSX and ES6 syntax in any of the files in the src/js/
directory, and less in the src/less/
directory.
Any file changes will automatically reload the examples.
You can explore the monkey patch code inside the monkey-patches
directory.
If you want to add your own simple transforms to elements there is a patch.js
file that exports a function called patch
that you can pass a string transform to.