Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bobey/reactjs-helloworld

The article shows how to enhance the standard following HelloWorld, with Grunt and Browserify
https://github.com/bobey/reactjs-helloworld

Last synced: 4 days ago
JSON representation

The article shows how to enhance the standard following HelloWorld, with Grunt and Browserify

Awesome Lists containing this project

README

        

# Basic HelloWorld with ReactJS, Grunt and Browserify

This is code support for an article on my blog : [http://blog.overnetcity.com](http://blog.overnetcity.com/2014/10/30/reactjs-grunt-browserify-cdn/)

The article shows how to enhance the standard following HelloWorld, with `Grunt` and `Browserify` :

```html







/** @jsx React.DOM */
var hello = React.createClass({
render: function() {
return <div>Hello, {this.props.name}!</div>
}
});

React.renderComponent(
<hello name="World" />,
document.getElementById('content')
);

```

Bonus, the React library is loaded via a CDN while still used with browserify inside your code.