Tools for JS and Node

Pick a tool

What Tool to Use:

  • webpack
  • Gulp
  • Grunt or
  • Browserify

this is the question now?

Stateless and Stateful components

Component in react can be both:

  • stateless
  • stateful

Example of the stateless component:

const HelloWorld = () => (
<SomeComponent />
)

Example of the stateful component:

class HelloWorld extends React.Component {
constructor() {
super()
this.state = { name: 'Chris' }
}
render () {
return (
<SomeComponent />
)
}
}

tags: node - gulp - grunt - browserify & category: javascript