Project Structure and File Conventions in NextJs 14

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ค. 2024
  • In this video, we'll review the project structure and file conventions in the App router in NextJs 14.
    👉🏼 New courses
    → www.hamedbahram.io/courses
    👉🏼 Project source code (Github)
    → github.com/HamedBahram/next-f...
    👉🏼 Work with me
    → www.hamedbahram.io/hire
    Chapters
    0:00 intro
    1:20 Top level folders
    1:40 Top level files
    2:50 Layout
    4:30 Page
    5:50 Loading UI
    7:45 Not found
    10:50 Error boundary
    13:20 Component hierarchy
    14:30 Global Error boundary
    15:50 Route handlers
    17:00 Template
    19:15 Default UI
    20:30 Nested routes
    30:00 Dynamic routes
    21:52 Route groups
    23:15 Private folders
    24:10 Metadata
    24:35 Recap
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 19

  • @Firesky0008
    @Firesky0008 15 วันที่ผ่านมา +21

    Thank you for creating this video and please ignore the person complaining about the documentation being included in the video. You including the documentation is why your videos are so much more helpful than others. You not only teach the content but also make it easier for people to find the documents later on when they need to build off what you taught. I wish other people would include documentation like you are doing in your videos.

    • @hamedbahram
      @hamedbahram  15 วันที่ผ่านมา +1

      Glad you find my approach helpful. Thanks for sharing your feedback.

  • @hebe_lia
    @hebe_lia 15 วันที่ผ่านมา +2

    Thank you so much, I really was struggling as a new person using Nextjs and this structure really will help me better comprehend the way it works.

    • @hamedbahram
      @hamedbahram  15 วันที่ผ่านมา +1

      You're welcome, Glad it was helpful!

  • @sayedalisinasadat2908
    @sayedalisinasadat2908 15 วันที่ผ่านมา +2

    It was really helpful , Thanks

    • @hamedbahram
      @hamedbahram  15 วันที่ผ่านมา +1

      Glad to hear that!

  • @clandadyt
    @clandadyt 15 วันที่ผ่านมา +1

    do you think it's possible to do a video on giving data to client props? or like passing server components to client component as children?

    • @hamedbahram
      @hamedbahram  15 วันที่ผ่านมา

      We've had those on previous videos. But sure it can also be a dedicated video.

  • @samanehghaempanah128
    @samanehghaempanah128 15 วันที่ผ่านมา +1

    Is this structure also true for React applications?
    What is the standard structure or best practice for React projects?

    • @hamedbahram
      @hamedbahram  15 วันที่ผ่านมา

      Not really! This is the convention in a next app. Your React project structure depends on the tool/framework you're using.

  • @user-sy2cu3ok4e
    @user-sy2cu3ok4e 14 วันที่ผ่านมา +1

    could you please make video regarding how to manage state in nextjs14 , which is better approach redux , contextapi or zustand ?. Thanks

    • @hamedbahram
      @hamedbahram  14 วันที่ผ่านมา

      React context is sufficient for a lot of use cases, if not I use Zustand. Watch this video → th-cam.com/video/BxohoXjbhKc/w-d-xo.html

    • @user-sy2cu3ok4e
      @user-sy2cu3ok4e 14 วันที่ผ่านมา

      @@hamedbahram Thanks, will check this.

  • @John-eq5cd
    @John-eq5cd 14 วันที่ผ่านมา

    Thank you!

    • @hamedbahram
      @hamedbahram  13 วันที่ผ่านมา

      You're welcome!

  • @avigdev
    @avigdev 15 วันที่ผ่านมา

    I like the topics you present new and important topics in nextjs but rely less on their documentation but present your own things because those in the field have already read the documentation and want to hear a little more.

    • @hamedbahram
      @hamedbahram  15 วันที่ผ่านมา +1

      Thanks for the feedback, I'll have that in mind.

    • @Firesky0008
      @Firesky0008 15 วันที่ผ่านมา +1

      I highly disagree with this person. Please continue to do this and present with the documentation. It is extremely helpful to see where you got your information from. It also teaches us where we can go as well in the future to figure out and build off what you have taught.
      How you are presenting is how I wish others would present as well. The documentation being included in your videos is specifically why I feel your videos are extremely helpful.

    • @hamedbahram
      @hamedbahram  15 วันที่ผ่านมา

      @@Firesky0008 Thank you! I appreciate your feedback.