DEV Community

Discussion on: React is awesome but have you tried fresh?

Collapse
 
funnypan profile image
panfan

how to import icons

Collapse
 
asheeshh profile image
ashish

As many npm modules dont yet support deno, things like react-icons may not work, though you can use simple-icons for sure with an image tag.

Other than that I'd personally prefer getting the svg paths of the icons and then exporting them as jsx components, for example. see this --
github.com/denoland/fresh/blob/mai...

Collapse
 
funnypan profile image
panfan

got it.
do u have try to deploy on vercel?

Thread Thread
 
asheeshh profile image
ashish

i didn't try it, i'd suggest deploying on deno deploy though, runs on edge and has faster deployment

Collapse
 
airtonix profile image
Zenobius Jiricek

iconify. thank me later.