https://github.com/jakesidsmith/react-monkey-patching
Some useful examples of monkey patching React
https://github.com/jakesidsmith/react-monkey-patching
Last synced: 3 months ago
JSON representation
Some useful examples of monkey patching React
- Host: GitHub
- URL: https://github.com/jakesidsmith/react-monkey-patching
- Owner: JakeSidSmith
- License: mit
- Created: 2017-11-04T17:56:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-08T18:11:36.000Z (over 7 years ago)
- Last Synced: 2025-01-16T19:33:26.028Z (4 months ago)
- Language: JavaScript
- Homepage: https://jakesidsmith.github.io/react-monkey-patching/
- Size: 1.33 MB
- Stars: 9
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Monkey Patching React
[](https://circleci.com/gh/JakeSidSmith/react-monkey-patching/tree/master)
**Some useful examples of monkey patching React**
## Setup
To install dependencies & run a dev server run the following commands.
```shell
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.
## Experiment
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.