text: import React from 'react';
  
  import './results.scss';
  
  // class component
  // class Results extends React.Component {
  //   render() {
  //     return (
  //       <section>
  //         <pre>{this.props.data ? JSON.stringify(this.props.data, undefined, 2) : null}</pre>
  //       </section>
  //     );
  //   }
  // }
  
  // functional component
  function Results (props) {
    return (
      <section>
        <pre>{props.data ? JSON.stringify(props.data, undefined, 2) : null}</pre>
      </section>
    );
  }
  
  export default Results;
  