For the developer in a hurry, I’ll start with the gist of what I will be building in this post: a self-contained Icon component that renders one of several icons. ‘Gist’. Geddit?The key takeaway is defining icons as SVG paths. If you can spot the five or six things wrong with this component, keep reading. If you can’t spot the five or six things wrong with this component, keep reading. Onwards! Wh
![Icons as React Components](https://cdn-ak-scissors.b.st-hatena.com/image/square/bd3402a4ddbb925d720b8b2002d19174a6980749/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A1200%2F1%2AuQs9oYissaMlGI5EzUX3iQ.png)