Skip to content

bare-bones react starter using babelify for es6 and jsx under browserify/watchify with npm run scripts

Notifications You must be signed in to change notification settings

TribeMedia/react-starter-es6-babel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

react-starter-babel-es6

bare-bones react starter using babelify for es6 and jsx under browserify/watchify with npm run scripts

forked from react-starter

view the starter demo

quick start

$ npm run watch &
$ npm start

commands

  • npm run build - build for production
  • npm run watch - automatically recompile during development
  • npm start - start a static development web server

starter code

import React from 'react'

class App extends React.Component {
  constructor () {
    super()
    this.state = { n: 0 }
  }
  render () {
    return <div>
      <h1>clicked {this.state.n} times</h1>
      <button onClick={this.handleClick.bind(this)}>click me!</button>
    </div>
  }
  handleClick () {
    this.setState({ n: this.state.n + 1 })
  }
}
React.render(<App />, document.querySelector('#content'))

contributing

If you like what you see, but want to add something more, fork this repo and add your additional feature to the name of the fork. Try to be specific with the name of your fork, listing the technologies used plus what features the fork adds.

variations

Check out the list of forks to see how other people have customized this starter repo.

About

bare-bones react starter using babelify for es6 and jsx under browserify/watchify with npm run scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.8%
  • HTML 22.2%