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;