Wrote an article
Used React.js
Used React Hooks
+1
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.