Files
react/examples/basic-jsx-external/index.html
Paul O’Shannessy 3c75593692 [examples] Use react-standalone (#7669)
[examples] Use babel-standalone
2017-01-26 11:57:01 -06:00

38 lines
1.3 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 <strong>not</strong> working right. This is probably because you&apos;re viewing
this on your file system instead of a web server.<br>
Try navigating to the React root
<pre>
cd /path/to/react
</pre>
and running
<pre>
python -m SimpleHTTPServer
</pre>
and going to <a href="http://localhost:8000/examples/basic-jsx-external/">http://localhost:8000/examples/basic-jsx-external/</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="../../build/react.js"></script>
<script src="../../build/react-dom.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
<script type="text/babel" src="example.js"></script>
</body>
</html>