SVGs in Next

Hey friends. I'm working on a new project and having some issues using SVGs. What is your recommended method for using SVGs in Next? I know there's a lot of answers online, but I'm wondering if there's a specific T3 way of doing this. Thanks! 😄
Solution:
I create react components for them and put into separate folder.
const SVGLogo = () => <svg>...</svg>;
const SVGLogo = () => <svg>...</svg>;
...
Jump to solution
2 Replies
Solution
Matvey
Matvey•13mo ago
I create react components for them and put into separate folder.
const SVGLogo = () => <svg>...</svg>;
const SVGLogo = () => <svg>...</svg>;
mosesintech
mosesintech•13mo ago
I like that a lot! Don't know why I never thought of it before, but it solved all the issues I was having. Thanks Ronan!