Children prop in react is way more useful
π°π΅πΆπΉπ±πΏπ²π» prop in a component is used to display whatever we include between the opening and closing tags when using a component.
Here are various ways to use it,
- As a placeholder
- As a function
- Alter the children
You can read the full article on hashnode.