Next.js Discord

Discord Forum

Lottiefiles with nextjs 13

Unanswered
Dwarf Crocodile posted this in #help-forum
Open in Discord
Dwarf CrocodileOP
How to use lottie files in nextjs 13? I wanna use animation at the same time i dont wanna use the "use client" thing on top of the page because it will make the whole thing a react app basically so i will loose the seo and search bots can't access the content of the page.

8 Replies

1. client components still have ssr (so prerendering for sso)
2. you can import client componet into server and keep some
@riský 1. client components still have ssr (so prerendering for sso) 2. you can import client componet into server and keep some
Dwarf CrocodileOP
import
what am i looking at here?
you don't need dynamic import to import client comp
@riský what am i looking at here?
Dwarf CrocodileOP
and then using it here.
you just have server comp and import it there
Dwarf CrocodileOP
that how i am trying to use it.
@riský you just have server comp and import it there
Dwarf CrocodileOP
even if i use the import from

still i am getting the same error