Problems with 5.Pass Props from component to component?


#1


Having problems with this part of the question:

Select App.js. Create a new line underneath the line var ReactDOM = require('react');.

On your new line, require the Greeting component class. Save the result in a variable named Greeting.???? anyone have a hint how to do this????


var React = require('react');
var Greeting = require('./Greeting');
var ReactDOM = require('react-dom');

var App = React.createClass({
  render: function () {
    return (
      <div>
        <h1>
          Hullo and, "Welcome to The Newzz," "On Line!"
        </h1>
        
        <article>
          Latest newzz:  where is my phone?
        </article>
      </div>
    );
  }
});

ReactDOM.render(
  <App />, 
  document.getElementById('app')
);


#2

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