mirror of
https://github.com/facebook/react.git
synced 2026-02-24 20:53:03 +00:00
47 lines
1.2 KiB
HTML
47 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv='Content-type' content='text/html; charset=utf-8'>
|
|
<title>Basic Example with precompiled JSX</title>
|
|
<link rel="stylesheet" href="../shared/css/base.css" />
|
|
</head>
|
|
<body>
|
|
<h1>Basic Example with precompiled JSX</h1>
|
|
<div id="container">
|
|
<p>
|
|
To install React, follow the instructions on
|
|
<a href="http://www.github.com/facebook/react.js/">GitHub</a>.
|
|
</p>
|
|
<p>
|
|
If you can see this, React is not running. You probably didn't run:
|
|
<pre>
|
|
npm install -g react-tools
|
|
jsx . build/
|
|
</pre>
|
|
</p>
|
|
</div>
|
|
<h4>Example Details</h4>
|
|
<ul>
|
|
<li>
|
|
This is built with
|
|
<a href="https://github.com/substack/node-browserify">browserify</a>.
|
|
</li>
|
|
<li>
|
|
This is written with JSX and precompiled to vanilla JS by doing:
|
|
<pre>
|
|
npm install -g react-tools
|
|
jsx . build/
|
|
</pre>
|
|
</li>
|
|
</ul>
|
|
<p>
|
|
</p>
|
|
<p>
|
|
Learn more at
|
|
<a href="http://facebook.github.io/react" target="_blank">facebook.github.io/react</a>.
|
|
</p>
|
|
<script src="../../build/react.js"></script>
|
|
<script src="build/example.js"></script>
|
|
</body>
|
|
</html>
|