Open sungik-choi opened 1 week ago
Add 'use client' directive to Client components
'use client'
대표적으로 Next.js App Router 등 React Server Component를 사용하는 라이브러리 사용처에서 bezier-react 컴포넌트를 쉽게 사용할 수 있도록 합니다.
Often in a React app, you’ll leverage third-party libraries to handle common UI patterns or logic. These libraries may rely on component Hooks or client APIs. Third-party components that use any of the following React APIs must run on the client: createContext react and react-dom Hooks, excluding use and useId forwardRef memo startTransition If they use client APIs, ex. DOM insertion or native platform views
Often in a React app, you’ll leverage third-party libraries to handle common UI patterns or logic.
These libraries may rely on component Hooks or client APIs. Third-party components that use any of the following React APIs must run on the client:
위 요소를 충족하는 컴포넌트에 'use client' 지시어를 추가합니다.
https://desk.channel.io/#/channels/1/team_chats/groups/1237/6708e17d001c395763d5
Description
Add
'use client'
directive to Client componentsReasons for suggestion
대표적으로 Next.js App Router 등 React Server Component를 사용하는 라이브러리 사용처에서 bezier-react 컴포넌트를 쉽게 사용할 수 있도록 합니다.
Proposed solution
위 요소를 충족하는 컴포넌트에
'use client'
지시어를 추가합니다.References