2013-05-30 03:46:11 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv='Content-type' content='text/html; charset=utf-8'>
|
2014-01-04 13:57:51 +08:00
|
|
|
<title>Basic Example with External JSX</title>
|
2013-05-30 03:46:11 +08:00
|
|
|
<link rel="stylesheet" href="../shared/css/base.css" />
|
|
|
|
|
</head>
|
2013-06-03 17:39:08 +08:00
|
|
|
|
2013-05-30 03:46:11 +08:00
|
|
|
<body>
|
2014-01-04 13:57:51 +08:00
|
|
|
<h1>Basic Example with External 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 working right. This is probably because you're viewing
|
|
|
|
|
this on your file system instead of a web server. Try running
|
|
|
|
|
<pre>
|
|
|
|
|
python -m SimpleHTTPServer
|
|
|
|
|
</pre>
|
|
|
|
|
and going to <a href="http://localhost:8000/">http://localhost:8000/</a>.
|
2013-05-30 03:46:11 +08:00
|
|
|
</p>
|
|
|
|
|
</div>
|
2014-01-04 13:57:51 +08:00
|
|
|
<h4>Example Details</h4>
|
|
|
|
|
<p>This is written with JSX in a separate file and transformed in the browser.</p>
|
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/JSXTransformer.js"></script>
|
|
|
|
|
<script type="text/jsx" src="example.js"></script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|