Series

Interesting Patterns

Series about interesting coding patterns I have come across and writing for my future reference. ;)

Articles in this series

Another Way to Render SVGs in React

Sep 9, 20203 min read 199 views

I recently came across an interesting pattern to render SVGs in an open-sourced project, so thought of sharing it. Instead of creating one file each for SVG, you construct an object with all your SVGs and export it like below const ICONS = { TWITTE...

Another Way to Render SVGs in React