Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (26 sloc) 792 Bytes
layout title
docs
Basic Usage

Once installed, create your React components as usual.

// /Scripts/HelloWorld.jsx
class HelloWorld extends React.Component {
	render() {
		return (
			<div>Hello {this.props.name}</div>
		);
	}
}

On-the-Fly JSX to JavaScript Compilation

Hit a JSX file in your browser (eg. /Scripts/HelloWorld.jsx) and observe the magnificence of JSX being compiled into JavaScript with no precompilation necessary.

Next Steps

On-the-fly JSX compilation is good for fast iteration during development, but for production you will want to precompile for best performance. This can be done via ASP.NET Bundling and Minification or Cassette.