ui
ui copied to clipboard
Hydration error when using the Authentication example code
I like the Authentication example on the home page and decided to use it to go quicker with the authentication part of my app. But I'm getting the following error after setting it up:
I haven't modified the code and here you can see what line 22 looks like in user-auth-form.tsx
:
How to reproduce
- Check out the Authentication code example
- Create an
auth
directory underapp
with apage.tsx
file with the content of thepage.tsx
file from the example code - Create a
user-auth-form.tsx
file undercomponents
with the content of the./components/user-auth-form.tsx
file from the example code - If you don't have them yet, add the Input and Label UI components
- Set up the
spinner
icon with the Loader2 component fromlucide-react
in thecomponents/icons.tsx
file