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


#1


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;


#2

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


#3

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