mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
Bump react to 0.12. Closes #37.
This commit is contained in:
parent
06b450da7b
commit
3c4427c54f
@ -10,8 +10,8 @@
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="css/unleash.css">
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.11.2/react.js"></script>
|
||||
<script src="//fb.me/JSXTransformer-0.11.2.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.12.0/react.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.12.0/JSXTransformer.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/reqwest/1.1.4/reqwest.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -1,4 +1,3 @@
|
||||
/** @jsx React.DOM */
|
||||
/* jshint quotmark:false */
|
||||
|
||||
// Unleash
|
||||
@ -281,7 +280,7 @@ var Unleash = React.createClass({
|
||||
contentType: 'application/json',
|
||||
data: JSON.stringify(feature)
|
||||
}).then(function(r) {
|
||||
console.log(r);
|
||||
console.log(r.statusText);
|
||||
}.bind(this), this.handleError);
|
||||
},
|
||||
|
||||
@ -328,7 +327,7 @@ var Unleash = React.createClass({
|
||||
});
|
||||
|
||||
|
||||
React.renderComponent(
|
||||
React.render(
|
||||
<Unleash pollInterval={5000} />,
|
||||
document.getElementById('content')
|
||||
);
|
Loading…
Reference in New Issue
Block a user