Open soofstad opened 2 weeks ago
Does this mean that every related file needs that, or just AuthContext.tsx
, since that's the application interface?
This is all a bit new to me. But should only be needed in AuthContext
as the rest is included in that.
Code that need to be rendered on client should be marked with 'use client'. See https://react.dev/reference/rsc/use-client#using-third-party-libraries for details.
This will ensure compatibility with frameworks like Nextjs, and react projects using server-side-rendering.