Skip to content

minor edit suggestions for React Foundations #1113

@dbry23

Description

@dbry23

In Chapter 6 Displaying Data with Props (https://nextjs.org/learn/react-foundations/displaying-data-with-props), in the code sample where the array names is added, you should probably not have the names.map() code present because it's added and described in the next code sample.

In Chapter 7 Adding Interactivity with State (https://nextjs.org/learn/react-foundations/updating-state), in the code sample that follows "Then, you can check the initial state is working..." there are two issues:

  • The text for the <button> should be Likes ({likes}) (like the next code sample) instead of Like({likes}) ("Like" instead of "Likes", no space before parenthesis)
  • The // ... lines are highlighted, but I don't think that was the intention. It should probably just be the <button> line.

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