Skip to content

Add object and array desctructuring examples #10

Description

@amerikan

Description

To prepare students for React course:

  1. We should cover object destructuring since it's often the technique used when destructing props in React.
function Header({ title, subtitle, color, logo }) { // <-- object destructuring
 return <div>...</div>;
}
  1. We should also cover array destructuring so that when they use useState it doesn't feel like magic. With useState that's what we use.
const [bestFriend, setBestFriend] = useState("joe"); // <-- array destructuring

Where is the Content Located?
File Name, Day Number, Section, etc

Old Content
Text, Image, URL path, etc

New Content
Text, Image, URL path, etc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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