Ido Evergreen’s Post

View profile for Ido Evergreen, graphic

Developer Educator || Devrel 🥑🥑

Ever come across this error in Nextjs14 ?? It simply tells you are rendering a React Class Component in a Server Component,  React.Component and React.PureComponent only works in Client Components. To fix this just mark the component rendering the React Class Component as a Client Component by adding 'use client' at the top of the file. #nextjs

  • graphical user interface, application

Yeah, nextjs only allows class component on the client side. Basically embrace funcrtional component😅

To view or add a comment, sign in

Explore topics