https://github.com/ipatch/react-in-browser
A simple react app that does not require Node.js and runs in-browser
https://github.com/ipatch/react-in-browser
Last synced: 5 months ago
JSON representation
A simple react app that does not require Node.js and runs in-browser
- Host: GitHub
- URL: https://github.com/ipatch/react-in-browser
- Owner: ipatch
- Created: 2017-12-04T06:22:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T19:48:26.000Z (almost 8 years ago)
- Last Synced: 2025-09-07T21:46:32.382Z (10 months ago)
- Language: HTML
- Homepage:
- Size: 653 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# in-browser React & friends :-)
Basically I created this project to see if I could create a simple React app
without using Node.js or a build tool / pipleline.
## Install
Look mom, no Node.js or `node_modules` directory required :-)
Simply clone the repo with your favorite git client. I prefer to clone repos with git in a terminal using a CLI.
```
git clone https://github.com/ipatch/playground-dnd-app3
```
After that, run `node install` ...ahhh just kidding 🤡
## Gotchas
One thing that I would have really liked to figure out or solve is being able to
run the app by just pointing the URL in the browser to
`file:///some/path/for/index.html` located where the file is stored on the
system, unfortunately I do not know of any browser that supports this.
## Notes
The easiest way to see the app in all its beauty 🌈 is to use a web server
provided by Python.
You can see if Python is installed locally on your system by running the below
command in favorite terminal emulator.
```shell
python -V
```
If you have Python 2.x installed on your system you can run
`python -m SimpleHTTPServer`
in the root of the directory you just cloned.
If Python version returned above is 3.x run the below command
`python -m http.server`
In your favorite browser go to `localhost:8000`