Next JS tutorial in Hindi #12 Dynamic Routing in next.js 13

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ธ.ค. 2024

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

  • @web-dev.ashishk
    @web-dev.ashishk ปีที่แล้ว +1

    I struggle to set dynmic routes in my nextjs app after spending hr's if found your video it help also than you so much sir

  • @pradnyamohite2096
    @pradnyamohite2096 ปีที่แล้ว +9

    Task ka solution ka videos bhi banao plz. Kyunki after completing task we can compair.. nice explanation

  • @shrutipatel-x5o
    @shrutipatel-x5o ปีที่แล้ว +2

    the method of explaining is very clear and perfect. just keep going.

  • @madhavbiradar2029
    @madhavbiradar2029 10 หลายเดือนก่อน

    wonderful explanation for each and every part .... just perfect

  • @DeepakKumar-oz5ky
    @DeepakKumar-oz5ky 7 หลายเดือนก่อน

    maja aa rha hai sir thank u for providing us best source of next js

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

    Video title card starting awesome and your video content are starsome

  • @sudhanshujha7225
    @sudhanshujha7225 4 หลายเดือนก่อน +2

    For the HW :
    import Link from "next/link";
    export default function StudentList() {
    const student = ["anil", "peter", "shark", "sam"];
    return (

    Student List
    {student.map((stud) => (


    {stud}


    ))}

    );
    }

  • @TechieDoctor
    @TechieDoctor ปีที่แล้ว +4

    Sir .. Plz upload more next js videos in a day if it is possible... 😇

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

    Please Keep uploading and introduce more concepts in depth

  • @jayashreedas5931
    @jayashreedas5931 ปีที่แล้ว +14

    "use client";
    import Link from "next/link";
    export default function StudentList() {
    const students = ["Anil", "Sam", "Peter", "Burce"];
    return (

    Student List

    {students.map((user) => {
    return {{user}};
    })}


    );
    }

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

      You wrote nicely but instead of "string concatenation", use "temple literal".

    • @mianusman-ah2165
      @mianusman-ah2165 ปีที่แล้ว

      @@praphullkumar4594but with temple why that's thing rendering
      student
      %2B%20usman%7D
      Details
      and the code is

      {myArray.map((index, key) => {
      return (


      {index}



      );
      })}

    • @praphullkumar4594
      @praphullkumar4594 ปีที่แล้ว +2

      @@mianusman-ah2165 Check href of , you are not written correctly. It should be like this
      {index}

    • @AkSingh-hd9vg
      @AkSingh-hd9vg 8 หลายเดือนก่อน

      U used two unnecessary {}{}

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

    You are great 😍😍😍😍

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

    Brother increase interview questions and what a method of teaching going to be fan ❤🎉

  • @React1007
    @React1007 9 หลายเดือนก่อน +2

    params.student kyu kiye?

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

    Thank you so much!!! God bless you

  • @royvivek5098
    @royvivek5098 9 หลายเดือนก่อน

    Great explanation

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

    very nice sir

  • @dilpavittarpalsingh9088
    @dilpavittarpalsingh9088 10 หลายเดือนก่อน

    bro jaise react mein state send krte hai navigation time vaise ee main next me kr raha hun but sahi se work ni kr rhi aap uspr v ek video bnaado smj aa jayega uska v fr achhhe se

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

    Thanks for sharing 🙏

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

    bhaiya agar mera link kise of component k under hai phir kasie route karu yeh toh page.js mai tha suppose page.js k under mai components hai uske under hai links toh kaise hoga routing dynamic useRouter next/nagavation mai hai yeh useRouter next/router mai hai

  • @OsamaSiddiqui-g3c
    @OsamaSiddiqui-g3c ปีที่แล้ว +1

    Can I make multiple dynamic routes in the same folder ?

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

    Sir counter program bhi bnaiye

  • @myselfkartikey
    @myselfkartikey 9 หลายเดือนก่อน

    params can be used without writing 'use client', useParams needs 'use client',

  • @linuxon-s3f
    @linuxon-s3f ปีที่แล้ว +1

    How to write each student's self information dynamically. The important question here is how do we make the dynamic page of each student. age, school etc.

  • @codinghub73
    @codinghub73 ปีที่แล้ว +2

    If you click on the student list, you can get the students' names in the path given in the link. How can I get the other details and separate details of the students?

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

    import React from "react";
    import Link from "next/link";
    const StudentList = () => {
    // Create an array of student objects
    const students = [
    { id: 1, name: "mona" },
    { id: 2, name: "sony" },
    { id: 3, name: "pally" },
    { id: "bhaiya", name: "bhaiya" },
    ];
    return (

    Student List

    {/* Use map to dynamically render the student list */}
    {students.map((student) => (

    {student.name}

    ))}


    );
    };
    export default StudentList;

  • @jitendrakumar-yz2yz
    @jitendrakumar-yz2yz ปีที่แล้ว +1

    hello sir,
    How can we make flipkart type search bar? In which the text of the search bar is changing automatically.

  • @AKvLogs-gb3cu
    @AKvLogs-gb3cu ปีที่แล้ว +1

    Confusion:: Anil sir mjhy ye ni smjhy aya apny link sy data studentlist ma rehty hoy studentlist/id ko hi send kiya but apny get usy student component per kiya? Why please reply

    • @AKvLogs-gb3cu
      @AKvLogs-gb3cu ปีที่แล้ว

      @codestepbystep please reply

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

      Ye "Dynamic routing" ka concept he, Jo v data data send karoge link se wo ye [student] segment/folder me automatic catch kar lega, aur iske according data to render/display karwa dega.

    • @AKvLogs-gb3cu
      @AKvLogs-gb3cu ปีที่แล้ว

      @@praphullkumar4594 ok but ye bta skty bro ap k usi component main rehty hoy request usi per send hogi is concept main ?

  • @shoaibkhan-mw3pw
    @shoaibkhan-mw3pw ปีที่แล้ว +2

    One doubt sir, is there any way to use search params like "student/?name=' anil '& age= 19 "

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

      You. Can split by ? Or & and can take even value .

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

    Bro nuxt js ke uper bhi video bana do please

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

    thanks for this

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

    Sir isko hum backend mai v use kar sakte for extracting id also you haven't covered this

  • @AamiTomakeBhaloBasi
    @AamiTomakeBhaloBasi 11 หลายเดือนก่อน

    if i want to make serverside rendering then we cant use use client then how i can get params data

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

    Anil ji I have one question why you have marked component as a use client inside [student] we can do that using server component

  • @muhammadwaqas-j1y9f
    @muhammadwaqas-j1y9f 10 หลายเดือนก่อน

    Hi sir one point i don't understand as you create dynamic folder [student] so studentlist how it sense student please answer me thanks.

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

    I have make a website using next js and it contain dynamic routing which is working perfecting on localhost but I have uploaded on godaddy and vercel on both routes work but dynamic routes [id] like this not working on live server how to solve it. Is there any configrations for it??

  • @ezCode-y5n
    @ezCode-y5n 8 หลายเดือนก่อน +1

    i just wrote the code as u mentioned but somehow it's showing two console log in a console i don't know why it is happening!..

  • @faizanetaajushshariah7531
    @faizanetaajushshariah7531 11 หลายเดือนก่อน

    When i click "control + u " for source code dynamic path name is not displaying , kindly answer how can display dyanmic things in source code ?

  • @garimasharma8890
    @garimasharma8890 8 หลายเดือนก่อน

    agar mene studentlist se navigate krke link access kie he to student page se kese open hue he, wo clear nhi hua

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

    So studebtLIst/1. this is following the folder name. but If I want to change the route name as dynamic name. like localhost:3000/anil/anil-portfolio or more localhost:3000/shubham/shubham-portfolio. just same like custom URL. then we can't follow the folder system because it will change everytime. how could we do that in nextJs

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

    sir mery pas click karny py name show nhi horha?

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

    Upload the solution of task too

    • @629_nishantghadigaonkar3
      @629_nishantghadigaonkar3 ปีที่แล้ว

      import Link from "next/link";
      const EmployeeList = () => {
      const employees = [
      'nishant', 'nehal', 'nayan', 'naira', 'chetan'
      ]
      return (

      Hello EMployee list

      {
      employees.map((value) => {
      return (

      {value}

      )
      })
      }


      )
      }
      export default EmployeeList;

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

    sir why you are not making videos on app router from beginning as it is recommended by nextjs itself

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

    sir how can i make 2 or more dashboard with authentication role based?

  • @syedahinairfan5019
    @syedahinairfan5019 16 วันที่ผ่านมา

    sir src /app nhi arhi to folder kha banuo

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

    Thank bhaiya

  • @Malik-Muhammad-Ali
    @Malik-Muhammad-Ali ปีที่แล้ว

    I got an error. Whenever I try to write Component inside a map function i got an error. It says that Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Can you explain this bro.

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

    How can i server render dynamic routes data without use client

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

    why name is coming as first letter as lower same as params.If I want to show same name that is there in StudentList how can we do it?

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

    Is It complete or remaining?
    Is It complete or remaining?
    Is It complete or remaining?
    Is It complete or remaining?
    Is It complete or remaining?
    Is It complete or remaining?

  • @rikki7663
    @rikki7663 9 หลายเดือนก่อน

    how you disable fast refresh here.

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

    Reusable component in next.js

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

    1st doubt: can not we make that dynamic path customized, like "studentlist/details/id" ? ,
    2nd doubt :If we will use use client to get the id then how we will use dynamic meta data.Dynamic meta data can only be used in Serverside component. So this is not beneficial for SEO.

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

    12 Dynamic Routing in next.js 13 YE video ka prhaya hua bhi nhi chal raha hy shayad version ki wjha sy esa ho rha hoo Kindly mjhy guide karen .

  • @ankitdehariya1667
    @ankitdehariya1667 5 หลายเดือนก่อน

    thx

  • @AkSingh-hd9vg
    @AkSingh-hd9vg 9 หลายเดือนก่อน

    Maine " use client" use nahi kiya ...fir bhi sahi chal raha ...aisa kyu

  • @074_jayparkhiya5
    @074_jayparkhiya5 ปีที่แล้ว

    Is It complete or remaining?
    🚔

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

    me ecommarse mern me bana raha ho product details me multipul image show karna chata hu but with and hight set nhi ho rahai 1st image ke niche 2 image ke niche 3rd image aa rahi hai
    import Carousel from "react-material-ui-carousel";
    {product.images &&
    product.images.map((item, i) => (

    ))}

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

    Why params.Student?

  • @আমাদেরঢাকা-ঢ২ঙ
    @আমাদেরঢাকা-ঢ২ঙ ปีที่แล้ว

    vai array to banan nehi atahe oto sikhado please

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

    meaning about this
    [folder_name]

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

    bhaiya ji ye to bataya nhi ki asal me ho kya rha --->

  • @Mostafizurrahaman-y1u
    @Mostafizurrahaman-y1u ปีที่แล้ว

    Please upload others videos

  • @074_jayparkhiya5
    @074_jayparkhiya5 ปีที่แล้ว

    Is It complete or remaining?
    Is It complete or remaining?
    Is It complete or remaining?
    Is It complete or remaining?
    Is It complete or remaining?
    Is It complete or remaining?
    Is It complete or remaining?

  • @AfzaalKhalid-ox3pw
    @AfzaalKhalid-ox3pw 6 หลายเดือนก่อน +1

    confusion he confusion hy, solution to mila ni, solution jo mila to sala question kia tha pata ni.

  • @yogeshbadoni9918
    @yogeshbadoni9918 ปีที่แล้ว +2

    this code is not working i mean to say that arrow function is not working why?
    "use client"
    const StudentDetails =({proms})=>{
    console.log(proms)
    return(

    Student details



    Name:{proms.student}

    )
    }
    export default StudentDetails;

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

      Use this code
      "use client"
      import { useRouter } from 'next/router';
      import React from 'react'
      export default function Slug() {
      let router = useRouter()
      console.log(router.query);
      return (
      Slug
      )
      }

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

      @@piyushtale0001 thanx buddy

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

    I don't see any value for Record for {params.Student}, but appears in console

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

      same here. Can anyone resolve this issue ?

  • @kashif2niazi
    @kashif2niazi 8 หลายเดือนก่อน

    who is peter?

    • @codestepbystep
      @codestepbystep  8 หลายเดือนก่อน +1

      spider man peter parker :D

  • @074_jayparkhiya5
    @074_jayparkhiya5 ปีที่แล้ว

    Is It complete or remaining?
    Is It complete or remaining?
    Is It complete or remaining?
    Is It complete or remaining?
    Is It complete or remaining?

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

    only taking "params" Not taking "param" why?

  • @yogita868
    @yogita868 8 หลายเดือนก่อน

    I have this created this file structure in Next js version ->14
    project\[[id]]
    Inside page.tsx I have this code->
    'use client';
    import PathwayContainer from '@/components/Pathways/PathwayContainer';
    const PathwayPage = () => {
    const clientID = '06375fa6-999a-46a8-9d80-12e41e76aa52';
    return (
    );
    };
    export default PathwayPage;
    This clienID I would fetch from useselector later as of now i keep code like this.
    and this is the component for PathwayContainer.
    'use client';
    interface IPathwayContainerProps {
    fetchClientProjects: (clientId: string) => Promise;
    clientID: string;
    }
    const PathwayContainer: FunctionComponent = (props) => {
    const {
    fetchClientProjects,
    clientID,
    } = props;
    const [loading, setLoading] = useState(false);
    const [activeProjectList, setActiveProjectList] = useState([])
    useEffect(() => {
    const getActiveProjectList = async () => {
    try {
    setLoading(true);
    const projectInfo = await fetchClientProjects(clientID);
    setActiveProjectList(projectInfo);
    }
    catch {
    }
    finally {
    setLoading(false);
    }
    }
    getActiveProjectList();
    }, [clientID])
    return (
    {activeProjectList.map((activeProject, index) => (

    {activeProject.name}

    ))}

    );
    };
    export default connect(() => ({}), {
    fetchClientProjects: actions.clients.fetchClientProjects,
    })(PathwayContainer);
    whevaver user clcik on this link which i have crated using clientID is not changed but my useeffect code runs again and again whenver user click on links. same code works fine in react. How can i solve this issue.please help.