Created
April 16, 2020 07:58
-
-
Save teerasej/35cdb5b87d3abf7b4065f2ee77c5d517 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"> | |
<script src="https:/unpkg.com/react@16.7.0/umd/react.development.js"></script> | |
<script src="https:/unpkg.com/react-dom@16.7.0/umd/react-dom.development.js"></script> | |
<script src="https:/unpkg.com/@babel/standalone/babel.min.js"></script> | |
<title>Nextflow React Playground</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
<script type="text/babel"> | |
class App extends React.Component { | |
state = { | |
counter: 0 | |
} | |
increase = () => { | |
} | |
render() { | |
return ( | |
<div> | |
<h1>{this.state.counter}</h1> | |
<button onClick={this.increase}>บวก</button> | |
</div> | |
); | |
} | |
} | |
ReactDOM.render( | |
<App></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