5. Pass props from component to component (Help me please)


help me please
Make sure that you require('./Greeting'); on line 3.

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

var Greeting = React.createClass({
  render: function () {
    return <h1>Hi there, {this.props.name}!</h1>;

// ReactDOM.render goes here:
module.exports = Greeting;


you need to add require('./Greeting') to app.js file as the instructions say


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