Created
January 18, 2018 19:10
-
-
Save AbeEstrada/265fdafe944770729afb7c49d6880ab8 to your computer and use it in GitHub Desktop.
React without node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Hello React</title> | |
<script src="https://unpkg.com/react@^16/umd/react.production.min.js"></script> | |
<script src="https://unpkg.com/react-dom@^16/umd/react-dom.production.min.js"></script> | |
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> | |
</head> | |
<body> | |
<div id="root"></div> | |
<script type="text/babel"> | |
class App extends React.Component { | |
render() { | |
return (<div>Hello React</div>) | |
} | |
} | |
ReactDOM.render(<App />, document.getElementById("root")); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment