Intentions

  1. Understand Rendering Collections in React using .jsx JavaScriptXml files. For browser-side application logic for the frontend.

Happenings

const Note = ({ note }) => {
  return (
    <li>{note.content}</li>
  )
}

const App = (props) => {
  const { notes } = props

  return (
    <div>
      <h1>Notes</h1>
      <ul>
        {notes.map(note => 
          <Note key={note.id} note={note} />
        )}
      </ul>
    </div>
  )
}

export default App

Exercises

  1. Main.jsx from the npm install is fine just remove any unused imports to clear the errors.