Next.js Discord

Discord Forum

Optimal icons solution

Unanswered
Polar bear posted this in #help-forum
Open in Discord
Avatar
Polar bearOP
I'm looking for the best solution for using icons in nextjs apps.
I'm now using @iconfy-react, but there is flickering happens on every page refresh, and the on each page load they make an api call to get the icon.
Is there a better libraries?

4 Replies

Avatar
lucide-react or react-icons are my recommendations, only two icon libraries I've ever used
Avatar
those will be cached, I don't think you need to worry about it
@Polar bear
Avatar
the only thing I don't like is
- until fetch is completed, icon is not taking its space so we have a layout shift