freeCodeCamp / freeCodeCamp/CurriculumExpansion

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

Open
#1,060 1 comment 0 reactions 1 assignee Claimed by @Ksound22 View on GitHub
full stack cert
Dominant language
JavaScript
Stars
340
Forks
146
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.