showing results for - "import a component react js"
Chiara
18 Nov 2019
1import React from 'react';
2import ReactDOM from 'react-dom';
3import { NavBar } from './NavBar.js';
4
5class ProfilePage extends React.Component {
6  render() {
7    return (
8      <div>
9      <NavBar />
10        <h1>All About Me!</h1>
11        <p>I like movies and blah blah blah blah blah</p>
12        <img src="https://content.codecademy.com/courses/React/react_photo-monkeyselfie.jpg" />
13      </div>
14    );
15  }
16}