Created
April 10, 2018 05:56
-
-
Save JohnProg/65a94d1124b5a0daa488b2d611fb80e1 to your computer and use it in GitHub Desktop.
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"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<script src="https://unpkg.com/babel-standalone@6.26.0/babel.min.js"></script> | |
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
</head> | |
<body> | |
<section id="root"></section> | |
<script type="text/babel"> | |
class HelloMessage extends React.Component { | |
render() { | |
return ( | |
<div> | |
Hello {this.props.name} | |
</div> | |
); | |
} | |
} | |
const container = document.getElementById('root'); | |
ReactDOM.render( | |
<HelloMessage name="John" />, | |
container | |
); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment