Skip to content

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

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions