Closed domsen123 closed 3 years ago
I don't know much about bootstrap but there are a few ways to load things only in browser:
if (!import.meta.env.SSR) { await import('...') }
if (!import.meta.env.SSR) { document.body.appendChild(document.createElement('script')) }
If you want to render part of your app only in client, use ClientOnly
component.
Hope that helps!
how can I load bootrap 5 in client only?