Open reboottime opened 4 months ago
Take the button component in previous lecture as an example, where the <Icon />
component may control its size using the font-size
prop. For example:
<Icon fontSize="16" />
This solution has two problems:
The solution
Render Props application
This article is a note of Render props - Advanced React course, Episode 4
Major Content