Next.js App vs Pages Router - Which One is Better?

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 27

  • @InvincibleMan99
    @InvincibleMan99 3 дня назад +1

    Please keep sharing insights.
    You have taught me how to teach.
    Respect to you mam

    • @Kulkarniankita
      @Kulkarniankita  2 дня назад

      Thank you for your kind words! Means a lot :)

  • @hassanzafar4849
    @hassanzafar4849 5 месяцев назад +1

    you explained all the concept very well. i hope i ace my interview which is scheduled tommorrow.I am feeling confident and well-prepared, thanks to your thorough explanations

    • @Kulkarniankita
      @Kulkarniankita  5 месяцев назад

      Thank you! Good luck for your interviews :)

  • @siddhartha-555
    @siddhartha-555 9 месяцев назад +1

    2:16 You explained the point well, Ankita. When I was learning Next.js, I found it very confusing. I even deployed a project with cache-related errors and did not get the expected performance.

    • @Kulkarniankita
      @Kulkarniankita  9 месяцев назад

      Thanks! What were you expecting? And what do you mean by cache related errors?

    • @siddhartha-555
      @siddhartha-555 9 месяцев назад

      @@Kulkarniankita Cache poisoning, concurrency, and stale data are the most common problems this is definitely one of the most important topics when dealing with the cache in Next.js

    • @siddhartha-555
      @siddhartha-555 9 месяцев назад

      header misconception too

  • @dev.raghuvanshi
    @dev.raghuvanshi 9 месяцев назад +2

    last week i completed one project based on app router. app is better than page for better handling of sub-components.

  • @dilkhush-raj
    @dilkhush-raj 9 месяцев назад +1

    App router was tricky at first, but now I get it.
    I have a question about how to make page transitions faster. When I switch to a different page, it takes a few seconds to change because it is dynamic (shows data based on user) and thus user clicks on link multiple time because they are unsure that it worked or not. I have tried using Suspense, which helped a bit, but is there anything else I can do?

    • @Kulkarniankita
      @Kulkarniankita  9 месяцев назад +1

      Thanks for your question, this is a great point. I'll make a video

  • @rajlaxmisalokhe6037
    @rajlaxmisalokhe6037 2 месяца назад

    Ma'am can you please make a video of explaining dynamic routes and how to run them

    • @Kulkarniankita
      @Kulkarniankita  2 месяца назад

      Sure! What do you mean how to run dynamic routes?

    • @rajlaxmisalokhe6037
      @rajlaxmisalokhe6037 2 месяца назад

      @@Kulkarniankita ma'am after following the server 3000 link the other typescript pages are not displayed on the web and showing 404 error

    • @abdullahebrahim6785
      @abdullahebrahim6785 Месяц назад +2

      @@rajlaxmisalokhe6037 There is a mistake in your routing or folder structure, 404 normally shows that this route isn't present in the app.

  • @saralightbourne
    @saralightbourne 9 месяцев назад +1

    you know what you are actually so amazing i subscribed🥰

  • @RakeshBitling
    @RakeshBitling 3 месяца назад

    Hi Ankita I have one query. I have nextjs application which has old version 12.3.4 having react 17 react-dom 17 codebase. Now I want to migrate to latest nextjs version 14+. Old version having page based routing was in place which is very old 2 years ago codebase with me in that codebase Material UI also version 4 resides in. So please guide me steps to migrate latest version with less code changes if required.very confused.

  • @sanjaybalnad4180
    @sanjaybalnad4180 3 месяца назад

    Was page router serverless by default?

  • @Kulkarniankita
    @Kulkarniankita  9 месяцев назад +1

    Are you ready to move to app router from pages router? What do you think of the two? Let's discuss!

    • @tawsifhaque9360
      @tawsifhaque9360 9 месяцев назад +1

      i've already moved to app router and love it even more than pages router. i'm working for a fintech company and building their web app using next.js app router. i'm locing every bit of it, evev more than i liked pages router.

    • @Kulkarniankita
      @Kulkarniankita  9 месяцев назад

      Oh glad to hear that!

  • @ranakaleem9012
    @ranakaleem9012 9 месяцев назад

    Your nextjs course on udemy is not coming..why?

    • @Kulkarniankita
      @Kulkarniankita  9 месяцев назад +1

      It's up to ZTM, they manage when it will be released to Udemy.

  • @treyrader
    @treyrader 9 месяцев назад +1

    rule of thumb: the more side effects an app has, the more likely there will be fleas