React js project in Hindi # Protected Routes

Поділитися
Вставка
  • Опубліковано 10 січ 2021
  • in this react js project we learn how to integration for sign up in react js project from scratch. This video is made by anil Sidhu in the Hindi language
    Protected Routes
    Hide Login and Register Page after Register
    Make Protected Route
    Redirect Login and Register Page
    Redirect Product Page
    Test Complete Flow

КОМЕНТАРІ • 44

  • @yeshudavid7216
    @yeshudavid7216 2 роки тому +2

    This was amazing, very simple, and easy to understand even for a beginner. Thanks a ton. Subscribed!

  • @yaashakhan1779
    @yaashakhan1779 2 роки тому

    Sir g.... awesome video....I m watching others video's for two days nothing helped me out. But your video really explain the basics 👌👌

  • @sachinsuryawanshi1681
    @sachinsuryawanshi1681 2 роки тому

    Sir very nice sir

  • @52nevil36
    @52nevil36 3 роки тому

    nice bro

  • @oss7281
    @oss7281 3 роки тому

    Anil you can say or you want explain ACL. which is operate by Routes.

  • @anoopmasaxena3760
    @anoopmasaxena3760 11 місяців тому +2

    Only because of one missing video of laravel api i am getting stucked in every video..u must have explained how did u make ecomm backend....very much upset😭

  • @UmairAli
    @UmairAli 6 місяців тому

    is there not any other way to make a protected route ? I mean Why would you use the local storage to hide/redirect things?
    what if someone manually put sth in the local storage as everyone does have the Option to edit the values ??
    then those conditions that you put to hide the navlinks and redirection of the user would be failed automatically.
    and could also lead to a security loop hole, don't you think?

  • @anilraj9877
    @anilraj9877 3 роки тому

    yaar bhaiya Redux pr jldi video banao, maine aapki pehli wali serise bhi dekhi hai leki jyda kuch smjh me nahi aaya, or bhi search ki hai youtube pr to nahi smjh me aarha
    please jldi se jldi ek project laiye.
    thank you

  • @syedmubeenhussain6317
    @syedmubeenhussain6317 Рік тому

    nice

  • @expertsystem6379
    @expertsystem6379 Рік тому

    Please useContext forget data drilling and save unwanted components render.

  • @prasanjitprusty2048
    @prasanjitprusty2048 29 днів тому

    Sir when I run the protected route it sowing export create (import as 'createPath' ) not found in react- router errors

  • @personal_Finance2
    @personal_Finance2 2 роки тому

    Sir, localstorage.getItem krne pr koi bhi key value ni aa rahi after successful registration , can you plz tell me kya error ho skti hai ?

  • @Pramodsharma-uz8ix
    @Pramodsharma-uz8ix Рік тому

    Bhai Protected.js me function ka Naam "Login" rkhe ho & jsx file ko direct props se pull kr liye. Jabki same follow kr rha mai mere ko bhar bhar ke error aya, Fir pta chala jsx ko direct as varibale use n kr skte To mai aise likha esko:
    let Cmp = () =>{
    return ;
    };
    Now, its fine.

  • @yeshudavid7216
    @yeshudavid7216 2 роки тому +3

    People using router version 6 might get errors. So to avoid it follow the code below.

    • @umairali2360
      @umairali2360 2 роки тому

      I tried same but getting error

    • @santanudutta8456
      @santanudutta8456 Рік тому

      ​@@umairali2360 don't need to do make protected component.Just go to those routes wherever you want to protect make sure there check {! localStorage.getItem('key') ? return navigate("/path") : null }

    • @vaibhavkhairnar7313
      @vaibhavkhairnar7313 Рік тому +1

      @@umairali2360 check how the props is being passed it should be in brackets

  • @youtubechehra
    @youtubechehra 3 роки тому +1

    Sir isme if me wrong details dalta hu to bhi page redirect ho jata h or sahi b dalu to localStorage m b jata h wrong detail se kese handle krre sir
    Jaise mene galat detail or login button pr click to add page par ja rha h ye condition kese chek kru please reply me sir

  • @naveedalikhan8237
    @naveedalikhan8237 3 роки тому

    role bassed access control routing pr koi video banayn

  • @user-pu9wn9rm4m
    @user-pu9wn9rm4m 4 місяці тому

    Hello sir
    I am not able to use react router hook .
    In my code bcz its showing,
    useHistory is not founded in react router so how can i use

  • @davidson7838
    @davidson7838 3 роки тому

    Sir, where is English series for this? Are you teaching for Indians only :( but I think most of the Indians also understand English while we don't understand Hindi. :(
    Thank you

  • @mdanish3471
    @mdanish3471 Рік тому

    dear in version 6 not props working and no error but not working plz reply me as soon thanks

  • @learneasily8414
    @learneasily8414 10 місяців тому

    Bro ya protection secure hay like laravel auth system?

  • @MuhammadWaseem-lm3cq
    @MuhammadWaseem-lm3cq 3 роки тому

    Sir, please make a sequence of all the videos so that we access them easily.

    • @codestepbystep
      @codestepbystep  3 роки тому

      Sure, I will make a playlist for this soon

    • @Sandeepkumar-ny7bd
      @Sandeepkumar-ny7bd 2 роки тому

      @@codestepbystep sir please mention the serial no. on all series video

  • @tahsinraza7305
    @tahsinraza7305 Рік тому

    When I am trying to protect getting error like
    A Route is only ever to be used as the child of Routes element, never render directly. Please wrap your Route in a Routes. Plz plz give me the solution

  • @rizwanshahvlogger
    @rizwanshahvlogger 3 роки тому

    Bhai login and register with redux ki videos banao please bhai 🙏 request hai bhai 🙏😞

  • @MdArman-ll2cu
    @MdArman-ll2cu 3 роки тому +1

    sir protected Component use krne ke baad error aara hai pls reply sir ('Check the render method of `Protected`.')

  • @narenderbisht7559
    @narenderbisht7559 3 роки тому +1

    sir please git ka link jarur diya karo code ka

  • @hiitechzBaBa
    @hiitechzBaBa Рік тому

    plzz provide the playlist link

  • @rmt0858
    @rmt0858 2 роки тому

    You called useEffect conditionally. It gives error

  • @umairali2360
    @umairali2360 2 роки тому +1

    I am using router 6 still getting error, please respond

  • @tazammulismail1925
    @tazammulismail1925 2 роки тому

    Sir git hub ka link dijiye yeh video ka

  • @ABHISHEKKUMAR-gp8ls
    @ABHISHEKKUMAR-gp8ls 3 роки тому

    sir where is next video

  • @roshankc6044
    @roshankc6044 3 роки тому +2

    What if user add manully in local storage (user-info) will that user be logged in (But the user isn't register in database)

  • @riteshgoswami1596
    @riteshgoswami1596 2 роки тому

    too Weak Protected Routes security it should not fully depend on local storage

  • @premmourya7060
    @premmourya7060 7 місяців тому

    Y history.push wala tareeka mujhe sahi nhi laga kyunki Maan lo 10 pages h to kya 10 p esa krna padega 🥲😅