Have some error in 2/4


#1


what problem with me code?

var React = require('react'var React = require('react'p);

var BestSeller = React.createClass({
  
  propTypes: {
 
},

  render: function () {
    return (
      <li>
        Title: <span>
          {this.props.title}
        </span><br />
        
        Author: <span>
          {this.props.author}
        </span><br />
        
        Weeks: <span>
          {this.props.weeksOnList}
        </span>
      </li>
    );
  }
});

module.exports = BestSeller;


#2

Does the above look right?


#3

sorry, I only focus on the 'BestSeller', and don't notice the require.
Thank you


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.