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

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>
help me please
Make sure that you require(’./Greeting’); on line 3.


<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

var React = require(‘react’);
var ReactDOM = require(‘react’);

var Greeting = React.createClass({
render: function () {
return

Hi there, {this.props.name}!

;
}
});

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

<do not remove the three backticks above>
1 Like

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.