Next JS tutorial in Hindi #13 Catch-all Segments of Route in Next.js

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.พ. 2025
  • Instragram Id : code.steps
    In this next js tutorial video, we learn about common layout in next js 13.4 in Hindi. this course is made by Anil Sidhu in the Hindi language.
    points of video
    What are the Segments of the Route?
    How to get all segments of Route
    Interview Question.
    The task for you.
    Get Route Name from url?
    How to get all segments of Route?
    github.com/ani...
    React js Latest Playlist in Hindi: • React tutorial for beg...
    inst id: @code.steps

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

  • @kashif2niazi
    @kashif2niazi 9 หลายเดือนก่อน +3

    gr8 job,
    no need of "use client", it works without of it.

  • @MusheerKhan-x1m
    @MusheerKhan-x1m ปีที่แล้ว +6

    Here is 2 way to use map function to take all data.
    1)
    Lectures:

    {params.lecture.map((segment, index) => (

    {segment}

    ))}
    2) let URL = params.lecture.map((segment, index) => (

    {segment}

    ))
    const joinedString = params.study.join('/');
    {joinedString}

  • @abhitripathi
    @abhitripathi ปีที่แล้ว

    Hmm, Looking forward to more videos

  • @sachinKumar-hu9gj
    @sachinKumar-hu9gj หลายเดือนก่อน

    We are receiving multiple segments from this code. We run the loop and get the following output:
    'use client';
    const Lecture = ({params})=>{
    return (

    welcome
    {params.lecture.map((items) => {
    return listing: {items};
    })}

    )
    }
    export default Lecture;

  • @nullntg
    @nullntg ปีที่แล้ว

    learning from you best teacher love from nepal

  • @fardilviews
    @fardilviews ปีที่แล้ว +1

    take love from BD

    • @codestepbystep
      @codestepbystep  ปีที่แล้ว +1

      Thank you and please take love from India :)

  • @kplcreation8748
    @kplcreation8748 ปีที่แล้ว

    its very helpful for who watching old playlist code

  • @dreamerb1
    @dreamerb1 ปีที่แล้ว

    You aare the best

  • @nitinbhalani5420
    @nitinbhalani5420 ปีที่แล้ว

    Very helpful video ❤

  • @muhammadanwarsubhani7429
    @muhammadanwarsubhani7429 ปีที่แล้ว +3

    I only let you know that there is no need of using 'use client' for the dynamic routing and using params, it works on server side too but why it does not console anything because when it is being used on server side, it console everything on server side, in our case that is terminal, when we console on client side, it is consoled on browser.

    • @GSCoder
      @GSCoder ปีที่แล้ว +1

      right bro I have noticed this mistake 🙂

  • @samiransari-fg6kx
    @samiransari-fg6kx ปีที่แล้ว +2

    Very helpful video.
    But please upgrade your mic quality 🎤 like chai aur code😇

  • @vartikajoshi-x3o
    @vartikajoshi-x3o 7 หลายเดือนก่อน

    nice

  • @ex-machina7685
    @ex-machina7685 5 หลายเดือนก่อน

    thank you sir

  • @SanjaySinghRawat-hq9hh
    @SanjaySinghRawat-hq9hh 3 หลายเดือนก่อน

    Nested Dynamic Routes pe bhi vedio ban do brother

  • @tipstricks3766
    @tipstricks3766 4 หลายเดือนก่อน

    How to use separate/dynamic metadata based on the slug?

  • @भानुप्रताप-ष2थ
    @भानुप्रताप-ष2थ 7 หลายเดือนก่อน

    I am getting type error here
    TypeError: Cannot read properties of undefined ( reading '0')

  • @akutubeworld5568
    @akutubeworld5568 ปีที่แล้ว +1

    we can fetch data dynamicaly like
    lecture{params.lecture}
    without using array [ ] thats all

  • @techreview588
    @techreview588 ปีที่แล้ว

    thanks a lot

  • @prempanwar6195
    @prempanwar6195 ปีที่แล้ว +1

    2 segment ke bad agr access krna hai to ek to static tareeka hai jese apne kiya hai {lecture[0]} like {lecture[3]}, {lecture[4]} etc
    Ya fir hum map ka use kr sakte hai or map ki help se jitne bhi segments aane wale hai unko dynamically show krwa sakte hai, Correct?

  • @bozainumaanalikhan2496
    @bozainumaanalikhan2496 27 วันที่ผ่านมา

    jis kisi ko bhi error araara hai params mai aisa kariya aur sir kya yeh method correct hai
    import React from 'react'
    async function Lecture({params}) {
    let resolved = await params
    console.log(resolved.lecture)
    return (

    {resolved?.lecture[0]}
    {resolved?.lecture[1]}

    )
    }
    export default Lecture

  • @gursimranjitsingh7621
    @gursimranjitsingh7621 ปีที่แล้ว

    bhai mera params ki jgh kuch or likh kr nhi chlta, vo undefined rehta hai variable jo bhi likhu me params ki jgh

  • @Datta3
    @Datta3 2 หลายเดือนก่อน

    in my case need to" import {useParams} from 'next/navigation' " at [ time stamp 7.10 ] ,,,otherwise not get params

  • @goldentalks1991
    @goldentalks1991 ปีที่แล้ว

    slam sir
    what will you make a project in Next JS after complete the playlist videos please gave answer

  • @maqboolbhaivlogs
    @maqboolbhaivlogs ปีที่แล้ว +1

    param mein data kis tarah dalna ha

  • @akashddeepchitransh4537
    @akashddeepchitransh4537 ปีที่แล้ว

    Can't we use query parameters?

  • @kamranbhatti8104
    @kamranbhatti8104 ปีที่แล้ว

    by using foreach loop we can use all segments

  • @PratikVishwakarma-h8s
    @PratikVishwakarma-h8s ปีที่แล้ว

    sir kitni baki hai video abhi q ki me abhi project pr hu live to meko smjh nhi aa rha hai

  • @muhammadhassanmotiwala7808
    @muhammadhassanmotiwala7808 ปีที่แล้ว

    where we will use this?

  • @konnectwithahsan
    @konnectwithahsan ปีที่แล้ว

    By this you can display multiple level of sagments.
    const { comments } = params;
    {comments.map((comment, index) => (

    Level: {comment}

    ))}

  • @shailmoktan8270
    @shailmoktan8270 ปีที่แล้ว

    What's the use of this part 🧐🧐 if we don't want to show more than what have we created. And some how it is just returning our own keywords 😒