https://github.com/ratson/rup
Run React example without boilerplate.
https://github.com/ratson/rup
Last synced: about 1 year ago
JSON representation
Run React example without boilerplate.
- Host: GitHub
- URL: https://github.com/ratson/rup
- Owner: ratson
- Created: 2016-05-23T16:09:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-23T17:02:13.000Z (about 10 years ago)
- Last Synced: 2025-03-04T23:48:14.760Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rup
Run React example without boilerplate.
## Installation
```
npm install rup -g
```
## Usage
Create `entry.js`.
``` js
import React from 'react'
import { render } from 'react-dom'
class App extends React.Component {
render() {
return (
Hello World!
)
}
}
const rootDiv = document.createElement('div')
document.body.appendChild(rootDiv)
render(, rootDiv)
```
Run `rup` in the same directory, then `open http://localhost:8080`.