Icons as React Components
David Gilbertson

“Well that’s just silly.” You don’t really explain why and I’m not convinced. When you’ve extracted the icon into a separate constant, you’d have to always import two modules to display an icon.

Also, even if you’re just passing a string as a prop, you can still do propTypes check using React.PropTypes.oneOf(Object.keys(icons))

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.