Use this Next.js file structure

  Рет қаралды 16,268

Tenacity

Tenacity

Күн бұрын

Пікірлер: 15
@lateeftaiwo7669
@lateeftaiwo7669 Жыл бұрын
I learnt so much more than just the file structure. Thank you
@ashmakov
@ashmakov Жыл бұрын
Thanks for sharing such as useful content!
@NaveenKumarasinghe
@NaveenKumarasinghe 5 ай бұрын
This is amazing! Could you do a similar video for Next.js Clean Architecture? Thanks!
@BeyondSE
@BeyondSE 11 ай бұрын
Thanks man ❤
@orbur2091
@orbur2091 Жыл бұрын
Thanks
@raishw6483
@raishw6483 2 ай бұрын
Why would i use this instead of thr src directory?
@henriqueoliveira3335
@henriqueoliveira3335 Жыл бұрын
Let's think about an item presentation project, usually these applications have a page (generally index) that contains a large amount of content. When I have work of this type, I make a folder called `section` and I separate the sections and then I just import them on the index page. What do you think of this approach? do you have something to explain to me that can help me?
@tenacity_dev
@tenacity_dev Жыл бұрын
It matters when you have content that will show conditionally, so if you have a large page of lots of components that will always show you can make it faster by loading in the components once they are visible. I would organize my components naturally without any specific directories because they are just components, lazy loading them does not change their nature.
@josephcranney1380
@josephcranney1380 Жыл бұрын
Hi, what would the app directory contain?
@nuvola-b
@nuvola-b Жыл бұрын
Pages
@2gbeh
@2gbeh Жыл бұрын
Ok you kicked off organizing files "by feature" and ended up organizing files by type? 🥴
@xczm225
@xczm225 8 ай бұрын
sorry for being curious) am I right that "Shared" folder should contain files that are used in multiple files/components?
@tenacity_dev
@tenacity_dev 4 ай бұрын
Yes, exactly!
@seetaverma4967
@seetaverma4967 Жыл бұрын
Where is the pages directory and styles directory? I worked on next js 2 months ago and now folder structure is changed
@tenacity_dev
@tenacity_dev Жыл бұрын
This video is made when nextjs was not using the app router. The concept is the same you just have a different file structure when you create a new project.
How I structure my next.js applications
23:19
Web Dev Cody
Рет қаралды 33 М.
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4,2 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 5 МЛН
How to Build Scalable Architecture for your Next.js Project
1:32:36
Alex Eagleson
Рет қаралды 89 М.
Next.js with a separate server - good idea?
22:53
ByteGrad
Рет қаралды 69 М.
Junior vs Senior React Folder Structure - How To Organize React Projects
16:16
Applying clean architecture to my Next.js project
20:15
Web Dev Cody
Рет қаралды 77 М.
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 229 М.
How to Vim in 2023: Tips and Tricks
15:53
ThePrimeagen
Рет қаралды 436 М.
EASY React Animation with useGSAP()
12:45
GSAP Learning
Рет қаралды 104 М.
The Complete Guide to Folder Structures in React
25:23
Cosden Solutions
Рет қаралды 10 М.
React Folder Structure Best Practices - For Large Projects
17:27
This is the Only Right Way to Write React clean-code - SOLID
18:23
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4,2 МЛН