2013-05-30 03:46:11 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
2015-07-12 09:54:54 +08:00
|
|
|
<meta charset="utf-8">
|
2014-01-04 13:57:51 +08:00
|
|
|
<title>Basic Example with Precompiled JSX</title>
|
2013-05-30 03:46:11 +08:00
|
|
|
<link rel="stylesheet" href="../shared/css/base.css" />
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2014-01-04 13:57:51 +08:00
|
|
|
<h1>Basic Example with Precompiled JSX</h1>
|
2013-05-30 03:46:11 +08:00
|
|
|
<div id="container">
|
|
|
|
|
<p>
|
2014-01-04 13:57:51 +08:00
|
|
|
If you can see this, React is not running. Try running:
|
2013-05-30 03:46:11 +08:00
|
|
|
</p>
|
2014-01-04 13:57:51 +08:00
|
|
|
<pre>npm install -g react-tools
|
|
|
|
|
cd examples/basic-jsx-precompile/
|
|
|
|
|
jsx . build/</pre>
|
2013-05-30 03:46:11 +08:00
|
|
|
</div>
|
|
|
|
|
<h4>Example Details</h4>
|
2014-01-04 13:57:51 +08:00
|
|
|
<p>This is written with JSX in a separate file and precompiled to vanilla JS by running:</p>
|
|
|
|
|
<pre>npm install -g react-tools
|
|
|
|
|
cd examples/basic-jsx-precompile/
|
|
|
|
|
jsx . build/</pre>
|
2013-05-30 03:46:11 +08:00
|
|
|
<p>
|
2014-01-04 13:57:51 +08:00
|
|
|
Learn more about React at
|
2015-04-19 06:41:56 +08:00
|
|
|
<a href="https://facebook.github.io/react" target="_blank">facebook.github.io/react</a>.
|
2013-05-30 03:46:11 +08:00
|
|
|
</p>
|
2014-05-21 15:07:18 +08:00
|
|
|
<script src="../shared/thirdparty/es5-shim.min.js"></script>
|
|
|
|
|
<script src="../shared/thirdparty/es5-sham.min.js"></script>
|
|
|
|
|
<script src="../shared/thirdparty/console-polyfill.js"></script>
|
2013-05-30 03:46:11 +08:00
|
|
|
<script src="../../build/react.js"></script>
|
|
|
|
|
<script src="build/example.js"></script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|