An open API service indexing awesome lists of open source software.

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.

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`.