Ever seen this? Have you ever needed to pass a function as a child to a component that returns JSX? By that I mean: <Wrapper>{() => <div>Hello</div>}</Wrapper> It looks weird. When I first saw this, I thought: "Why not just pass the component itself...
tigerabrodi.blog1 min read
No responses yet.