fullstack-hy2020 / part2-notes

69 stars 180 forks source link

Part 5 - The components children, aka. props.children #89

Open danilocangucu opened 1 year ago

danilocangucu commented 1 year ago

The fragment code present in src/App.js:

{user &&
        <div>
          <p>{user.name} logged in</p>
          <Togglable buttonLabel="new note">
            <NoteForm createNote={addNote} />
          </Togglable>
        </div>
      }

According to the material present in Part 5 - letter b - The components children, aka. props.children, should be:

{user &&
        <div>
          <p>{user.name} logged in</p>
<Togglable buttonLabel="new note">
  <NoteForm
    onSubmit={addNote}
    value={newNote}
    handleChange={handleNoteChange}
  />
</Togglable>
        </div>
      }

Greetings and thanks for the incredible course!

Danilo