fac26 / goth-kking

FAC26 | in-house project
https://goth-kking.vercel.app
0 stars 0 forks source link

export default function #34

Open LauraK0 opened 1 year ago

LauraK0 commented 1 year ago

Have you considered making your functions more concise?

GoTH code:

function Home() {
    return <div>Home page</div>
}

export default Home

Slightly more concise:

export default function Home() {
      return <div>Home page</div>
}
ko-karol commented 1 year ago

I always thought this too, but in the end I decided that it would make sense to always find the default exported function at the end of the file. What happens if we, for example, have multiple functions in a file? Would prefer it concise like you but trying another way with this project.