mirror of
https://github.com/facebook/react.git
synced 2026-02-24 04:33:04 +00:00
35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Basic Example with External JSX</title>
|
|
<link rel="stylesheet" href="../shared/css/base.css" />
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Basic Example with External JSX</h1>
|
|
<div id="container">
|
|
<p>
|
|
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>.
|
|
</p>
|
|
</div>
|
|
<h4>Example Details</h4>
|
|
<p>This is written with JSX in a separate file and transformed in the browser.</p>
|
|
<p>
|
|
Learn more about React at
|
|
<a href="https://facebook.github.io/react" target="_blank">facebook.github.io/react</a>.
|
|
</p>
|
|
<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>
|
|
<script src="../../build/react.js"></script>
|
|
<script src="../../build/JSXTransformer.js"></script>
|
|
<script type="text/jsx" src="example.js"></script>
|
|
</body>
|
|
</html>
|