The directories are correct, but i'm experiencing some difficulties with this, basically i'm using css code as well.
The page is not showing anything. Just that and when i run:
npm run dev
it shows this:
The directories are correct, but i'm experiencing some difficulties with this, basically i'm using css code as well.
The page is not showing anything. Just that and when i run:
npm run dev
it shows this:
You're trying to use useState
in a component that your app is treating as a server component.
To fix this, in your src/app/page.tsx
put this as the first line in your file:
"use client"
This will tell next that this is meant to be a client component so you can now safely make use of useState
.