Skip to content

Commit

Permalink
Fix React deprecation warning in test
Browse files Browse the repository at this point in the history
Replacing React.createClass with a plain javascript class in fixture.
  • Loading branch information
TheDancingCode committed Mar 16, 2018
1 parent e7acbf2 commit e020e4a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/fixtures/react/user.react
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
"use strict";

var React = require('react');

var User = React.createClass({
render: function() {
class User extends React.Component {
render() {
return (
<p>
{this.props.user.name}
</p>
);
}
});
};

module.exports = User;

0 comments on commit e020e4a

Please sign in to comment.