Next.js Discord

Discord Forum

What is the best way to use a lot of SVG in an application?

Unanswered
Orinoco Crocodile posted this in #help-forum
Open in Discord
Orinoco CrocodileOP
I have multipage application. Each page contains a lot of svg. I know that a lot of people are advising to use @svgr/webpack, but importing a lot of icons into a component is inconvenient. i would like something like that

                <Icon name="arrow" />
                <Icon name="folder" />

and I know this is achieved by svg sprites, but Next.js sends requests for media on every routing

0 Replies