Skip to content

Conversation

@sagi0312
Copy link

Description

Added explanation of the children prop to the React props lesson to help learners.

Changes

  • Added a new section explaining the special children prop in React
  • Included a practical code example showing how to use children for wrapping UI elements
  • Demonstrated the rendered output to clarify how the pattern works

Motivation and Context

The lesson covered props well but didn't explain the children prop, which is a fundamental React pattern for component composition. This addition addresses issue #64645 by providing learners with information about the children prop.

How Has This Been Tested?

  • Tested locally by running pnpm run develop at http://localhost:8000
  • Verified the markdown renders correctly
  • Confirmed code examples display properly
  • Checked that the new content flows naturally with existing lesson material

Screenshots:

Screenshot 2025-12-27 at 9 19 23 PM Screenshot 2025-12-27 at 9 19 46 PM

Checklist:

Closes #64645

@github-actions github-actions bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label Dec 28, 2025
@majestic-owl448 majestic-owl448 added the deprioritized PR reviews are deprioritized; lacks productive input and ignores codebase best practices. label Jan 2, 2026
@majestic-owl448
Copy link
Contributor

[x] I have read and followed the how to open a pull request guide.

Your title does not match the guide

@sagi0312 sagi0312 changed the title curriculum: add children prop explanation to React props lesson fix(curriculum): add children prop documentation to React article Jan 2, 2026
@sagi0312 sagi0312 changed the title fix(curriculum): add children prop documentation to React article docs(curriculum): add children prop documentation to React article Jan 2, 2026
@sagi0312
Copy link
Author

sagi0312 commented Jan 2, 2026

[x] I have read and followed the how to open a pull request guide.

Your title does not match the guide

Thanks for the feedback! I apologize for missing the scope in the title. I've updated it to: fix(curriculum): explain props.children.
I appreciate you taking the time to point it out. Looking forward to your review!

@sagi0312 sagi0312 changed the title docs(curriculum): add children prop documentation to React article fix(curriculum): add children prop documentation to React article Jan 2, 2026
@sagi0312 sagi0312 changed the title fix(curriculum): add children prop documentation to React article fix(curriculum): explain props.children Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprioritized PR reviews are deprioritized; lacks productive input and ignores codebase best practices. scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing special prop "children" in article on React

2 participants