Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danilocangucu opened this issue Jun 11, 2023 · 0 comments
Open

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

danilocangucu opened this issue Jun 11, 2023 · 0 comments

Comments

@danilocangucu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants