Skip to content

Commit

Permalink
Merge pull request #306 from TheDancingCode/react-fixture
Browse files Browse the repository at this point in the history
Fix React deprecation warning in test
  • Loading branch information
doowb authored Mar 19, 2018
2 parents e7acbf2 + e020e4a commit 4e05c88
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 4e05c88

Please sign in to comment.