n30w / Darkspace

Academic project management platform for SE-2024
MIT License
0 stars 0 forks source link

10 course functionality #17

Closed reesedychiao closed 5 months ago

reesedychiao commented 5 months ago

For page.tsx files, please use "export default function function name, like Page or Home {}" syntax instead of fat arrow syntax "page: any = () => {}". Fat arrow can be used for everything except page.tsx.

This raises an error though. I think typescript requires you to specify the type and that requires a fat arrow function?

n30w commented 5 months ago

This raises an error though. I think typescript requires you to specify the type and that requires a fat arrow function?

Strange, it doesn't raise an error for me. I'll change it to mine and we can look at it in person.