0.0.1 • Published 8 years ago
rup v0.0.1
rup
Run React example without boilerplate.
Installation
npm install rup -g
Usage
Create entry.js
.
import React from 'react'
import { render } from 'react-dom'
class App extends React.Component {
render() {
return (
<h1>
Hello World!
</h1>
)
}
}
const rootDiv = document.createElement('div')
document.body.appendChild(rootDiv)
render(<App />, rootDiv)
Run rup
in the same directory, then open http://localhost:8080
.
0.0.1
8 years ago