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.