How to Use Client Component Libraries in Next.JS 13 Server Components (React-Bootstrap)

preview_player
Показать описание


📣 Follow Coding in Flow on social media:
Рекомендации по теме
Комментарии
Автор

i was trying to create a carousel in my server component and stumbled in a bunch of errors until i saw this video, thank you so much man.

besim
Автор

there's a dirty trick to avoid importing the components one-by-one each time you're using a new component.

"use client";
export * from "react-bootstrap";

// and you're importing it just normally

import { Container } from

altough this was not recommended if the library has big bundle size, e.g material-ui

ban_droid
Автор

How can I do this for framer motion as it uses
<motion.div> and nextjs doesn’t seem to allow the dot

MashaoleMogale
Автор

Doesn't this defeat the purpose of server side rendering?

fooked
Автор

was that necessary before using next App dir ?

salemelatar