channel-io / bezier-react

React components library that implements Bezier design system.
https://main--62bead1508281287d3c94d25.chromatic.com
Apache License 2.0
221 stars 47 forks source link

Add 'use client' directive to Client components #2456

Open sungik-choi opened 1 week ago

sungik-choi commented 1 week ago

Description

Add 'use client' directive to Client components

Reasons for suggestion

대표적으로 Next.js App Router 등 React Server Component를 사용하는 라이브러리 사용처에서 bezier-react 컴포넌트를 쉽게 사용할 수 있도록 합니다.

Proposed solution

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' 지시어를 추가합니다.

References

channeltalk[bot] commented 1 week ago

https://desk.channel.io/#/channels/1/team_chats/groups/1237/6708e17d001c395763d5