Last active
December 29, 2016 02:16
-
-
Save taisyo7333/aab97e11399058c477fd1dabf4032bf6 to your computer and use it in GitHub Desktop.
React HTML
This file contains hidden or 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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Browser Transplier Example</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.0/react.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.0/react-dom.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.24/browser.min.js"></script> | |
</head> | |
<body> | |
<div id="content"></div> | |
<script type="text/babel" src="separate.js"> | |
</script> | |
</body> | |
</html> |
This file contains hidden or 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
var SeparateJSX = React.crateClass({ | |
render: function() { | |
return ( | |
<h2>React with JSX Transpiler Working!</h2> | |
); | |
} | |
}); | |
ReactDOM.render( | |
<SepareteJSX />, | |
document.getElementById('content') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment