➤ Supabase➤ Scala➤ Github➤ React Native➤ projectdiscovery➤ Remix➤ Rescript➤ Purescript➤ npm➤ Cloudflare➤ React➤ Next.js➤ GO➤ Hyper-V➤ Tibero➤ Git➤ Algorithms, 2020년
Next.js 13에서 use client를 사용하면 Unexpected token이 뜨거나 브라우저가 멈출 때
June 26, 2023문제
Next.js 13에서 use client를 사용하면 Unexpected token이 뜨거나 브라우저가 멈춤
해결 방법
- normal function 대신 arrow function을 사용한다.
export default funtion Sth() {}
|
V
const List = () => {
export default List;
}
레퍼런스
- https://github.com/vercel/next.js/issues/47704
- https://stackoverflow.com/questions/76054383/next-js-13-use-client-gives-unexpected-error/76086398#76086398