pls someone help
Unanswered
Black Caiman posted this in #help-forum
Black CaimanOP
6 Replies
Black CaimanOP
wat am i doin wrong
Try saving your file
@Black Caiman Click to see attachment
Havana
it needs to be a capital letter:
const Page = () => {
//
}
Chum salmon
Also for good practice you should name it LoginPage
The convention is like this
The convention is like this
app/login/page.tsx
-> LoginPageapp/about/page.tsx
-> AboutPageapp/contact/page.tsx
-> ContactPageBlack CaimanOP
i see
Chum salmon
Even better if you create a route group.
Create a folder called
For example:
This will keep all your pages organized in 1 folder. The (pages) folder will not be included in the url paths.
You can still access those pages normally like
Create a folder called
(pages)
in your app directory and put all pages in there.For example:
app/(pages)/login/page.tsx
app/(pages)/about/page.tsx
app/(pages)/contact/page.tsx
This will keep all your pages organized in 1 folder. The (pages) folder will not be included in the url paths.
You can still access those pages normally like
www.mysite.com/login