Created
August 19, 2016 06:20
-
-
Save anonymous/1bf82776e340890970787007066335d6 to your computer and use it in GitHub Desktop.
JS Bin React workshop boilerplate // source https://jsbin.com/xopuni
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> | |
<head> | |
<meta name="description" content="React workshop boilerplate"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css"/> | |
<style type="css"> | |
</style> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/0.14.7/react-with-addons.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/0.14.7/react-dom.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/classnames/2.2.3/index.min.js"></script> | |
<style id="jsbin-css"> | |
/* Base Application Styles */ | |
.app { | |
max-width: 500px; | |
margin: 0 auto; | |
} | |
.todo-item { | |
padding: 0.4em 0; | |
cursor: pointer; | |
} | |
.todo-item.done { | |
text-decoration: line-through; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="app" class="app"></div> | |
<script id="jsbin-javascript"> | |
'use strict'; | |
var App = React.createClass({ | |
displayName: 'App', | |
render: function render() { | |
return React.createElement( | |
'div', | |
null, | |
'Welcome to React!!' | |
); | |
} | |
}); | |
// Render the main component into the dom | |
ReactDOM.render(React.createElement(App, null), document.getElementById('app')); | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="React workshop boilerplate"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css"/> | |
<style type="css"> | |
</style> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.14.7/react-with-addons.js"><\/script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.14.7/react-dom.js"><\/script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/classnames/2.2.3/index.min.js"><\/script> | |
</head> | |
<body> | |
<div id="app" class="app"></div> | |
</body> | |
</html></script> | |
<script id="jsbin-source-css" type="text/css">/* Base Application Styles */ | |
.app { | |
max-width: 500px; | |
margin: 0 auto; | |
} | |
.todo-item { | |
padding: 0.4em 0; | |
cursor: pointer; | |
} | |
.todo-item.done { | |
text-decoration: line-through; | |
}</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var App = React.createClass({ | |
render: function () { | |
return ( | |
<div> | |
Welcome to React!! | |
</div> | |
); | |
} | |
}); | |
// Render the main component into the dom | |
ReactDOM.render(<App />, document.getElementById('app'));</script></body> | |
</html> |
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
/* Base Application Styles */ | |
.app { | |
max-width: 500px; | |
margin: 0 auto; | |
} | |
.todo-item { | |
padding: 0.4em 0; | |
cursor: pointer; | |
} | |
.todo-item.done { | |
text-decoration: line-through; | |
} |
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
'use strict'; | |
var App = React.createClass({ | |
displayName: 'App', | |
render: function render() { | |
return React.createElement( | |
'div', | |
null, | |
'Welcome to React!!' | |
); | |
} | |
}); | |
// Render the main component into the dom | |
ReactDOM.render(React.createElement(App, null), document.getElementById('app')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment