1. Use Multline JSX in a Component


#1


This code is, as suggested in the activity instructions, based on that in QuoteMaker.js: however, it is returned as incorrect without any error messages, additionally, the option to "Get Code" is not provided. What needs to changed for it to work?


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

var QuoteMaker = React.createClass({
  render: function () {
    return (
      <blockquote>
        <p>
          What is important now is to recover our senses.
        </p>
        <cite>
          <a target="_blank"
            href="http://bit.ly/1LvSLUA">
            Susan Sontag
          </a>
        </cite>
      </blockquote>
    );
  }
}):

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


#2

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