Skip to content

Instantly share code, notes, and snippets.

@pablopaul pablopaul/index.html forked from anonymous/index.html
Created Aug 19, 2016

Embed
What would you like to do?
JS Bin React workshop boilerplate // source https://jsbin.com/xopuni
<!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>
/* 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;
}
'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
You can’t perform that action at this time.