0.0.1 • Published 8 years ago

rup v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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.