From e020e4ab1f9a12c895aa2721af22f604286d42c3 Mon Sep 17 00:00:00 2001 From: Thomas Vantuycom Date: Fri, 16 Mar 2018 09:04:56 +0100 Subject: [PATCH] Fix React deprecation warning in test Replacing React.createClass with a plain javascript class in fixture. --- test/fixtures/react/user.react | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/fixtures/react/user.react b/test/fixtures/react/user.react index fc1f951..de945b8 100644 --- a/test/fixtures/react/user.react +++ b/test/fixtures/react/user.react @@ -1,13 +1,15 @@ +"use strict"; + var React = require('react'); -var User = React.createClass({ - render: function() { +class User extends React.Component { + render() { return (

{this.props.user.name}

); } -}); +}; module.exports = User;