SJammy
10/10/2019 - 2:21 PM

Multiline JSX in a Component

// Multiline JSX in a Component

import React from 'react';
import ReactDOM from 'react-dom';

class Maker extends React.Component {
  render() {
    return (
    	<blockquote>
        <p>
          Recover our senses.
        </p>
        <cite>
          <a target="_blank" 
            href="https://en.wikipedia.org/wiki/Susan_Sontag">
            Su So
          </a>
        </cite>
      </blockquote>
    );
  }
};

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