Skip to content

reactview lets you instantly view any react component in your browser

Notifications You must be signed in to change notification settings

goatslacker/reactview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##ReactView

##Install

npm install -g reactview

###Usage

This is the perfect tool for prototyping React components. Instead of setting up webpack to convert ES6 features or setup a server, it's as easy as:

reactview component.jsx

It'll automagically compile it using webpack and babel, then start a server and open your browser. Optionally, you can specify the port as the second argument: reactview component.jsx 8000

###Example

The example component looks like:

import React from 'react'

	export default class Woah extends React.Component{
		render(){
			return <div>this is sick</div>
		}
	}

	React.render(<Woah/>,document.body)

Currently, you do need to call React.render in your component.

###Todos

  • remove the need for React.render in your component
  • add in hot reloading
  • whatever you send in a pull request

About

reactview lets you instantly view any react component in your browser

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%