Missing special prop "children" in article

This article on React props does not mention that React automatically passes content between component tags as “props.children”; for example:

function Card({ children }) {
  return <div className="card">{children}</div>;
}

<Card>
  <h2>Hello</h2>
</Card>

Above function will return:
<div class="card">
<h2>Hello</h2>
</div>

Not an error, just some missing info that I think is important.

Should I open an issue, or leave it as is?

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

have you ever opened an issue about this?

No I haven’t. I will just do it.

Opened. Check it out here.

1 Like