From f509ad70664c360920bfd1bd9b302e4eeb3043df Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 26 Sep 2017 23:00:45 +0200 Subject: Upgrade to React v16.0.0. --- src/web/js/components/time.react.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/web/js/components/time.react.js') diff --git a/src/web/js/components/time.react.js b/src/web/js/components/time.react.js index c293e638..07e1fbdf 100644 --- a/src/web/js/components/time.react.js +++ b/src/web/js/components/time.react.js @@ -1,8 +1,10 @@ var React = require('react'); +var createReactClass = require('create-react-class'); +var PropTypes = require('prop-types'); -var JarrTime = React.createClass({ - propTypes: {stamp: React.PropTypes.string.isRequired, - text: React.PropTypes.string.isRequired}, +var JarrTime = createReactClass({ + propTypes: {stamp: PropTypes.string.isRequired, + text: PropTypes.string.isRequired}, render: function() { return (