Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import ReactDOM from 'react-dom';
- class Quote extends React.Component {
- render(){
- return ( //multi-line JSX expression should always be wrapped in parentheses! Hence return has parentheses around it
- <blockquote>
- <p>
- What is important now is to recover our senses.
- </p>
- <cite>
- <a target="_blank"
- href="https://en.wikipedia.org/wiki/Susan_Sontag">
- Susan Sontag
- </a>
- </cite>
- </blockquote>
- );
- }
- };
- ReactDOM.render(<Quote />, document.getElementById('app'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement