Skip to content

Add new lesson on passing in-line object as a props #1060

@jdwilkin4

Description

@jdwilkin4

We have this lesson here on passing props from parent to child component

https://www.freecodecamp.org/learn/front-end-development-libraries-v9/lecture-working-with-data-in-react/how-do-you-pass-props-from-a-parent-component-to-a-child-component-in-react

But we should have short lesson right after that to talk about how to pass in inline objects as a prop.
We should model the lesson from the react docs explanation here

https://react.dev/learn/passing-props-to-a-component#step-1-pass-props-to-the-child-component

I thought about adding it to the existing lesson linked above but that might make it to long. So we should just have a short lesson.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions