0
b2plane
1y

I need nextjs tips

Im coding in nextjs for the first time because the framework i need to use only supports nextjs/vite/react. I have no idea how this framework works and im literally googling for almost every single bit. Also using chatgpt as copilot. Heck im googling even how to do routing here. The code is probably gonna be total shit.

Anyone can give me some tips in nextjs on how to keep the code clean? How is a project supposed to be structured?

Comments
  • 6
    Read through NextJS docs.
  • 0
    @yehaaw is it enough to understand at least the basics? What about rest api? What things would be considered more complex which i wont be able to learn from docs?
  • 1
    @b2plane in very general terms:

    a framework is only as good as it's documentation. So scan through the docs, to see if all topics you need are at least covered. Then start working closely together with the docs on whatever project youre working on.

    If the docs are shit, you know what to avoid in the future.
  • 0
    Works for JavaScript in general: Use TypeScript instead. If a lib or framework has no TypeScript type declarations, it is probably shit.
  • 1
    @b2plane
    You put this nextJS on yourself mate.
Add Comment