https://github.com/zahnx/form-steps
Example of children props in React.js
https://github.com/zahnx/form-steps
Last synced: 5 months ago
JSON representation
Example of children props in React.js
- Host: GitHub
- URL: https://github.com/zahnx/form-steps
- Owner: zahnx
- Created: 2025-03-10T11:24:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-13T11:02:52.000Z (over 1 year ago)
- Last Synced: 2025-05-13T18:01:34.650Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://form-steps-nu.vercel.app
- Size: 207 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Form Steps - Children Props
## Description
This simple project is to showcase the proper use of children props to create a reusable component in React.js
## Tech Stack
- HTML
- CSS
- Javascript
- React
## Notes
- The children prop allow us **to pass JSX into an element** (besides regular props)
- Essential tool to make **reusable** and **configurable** components (especially component content)
- Really useful for **generic** components that **don't know their content** before being used (e.g modal)