Login System using Redux - Redux tutorial for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • Hey, guys. Welcome to this video where you will be learning about the basics of Redux, creating stores and accessing them globally and many more to get started with Redux.
    I am sorry for not uploading videos consistently as I had my exams that I had, so from now you could expect more videos on my channel.
    *I am applying for Front end developer jobs*
    I am applying for Front end developer job, If you have any job vacancies for that position, I would appreciate if you could let me know. I will leave my resume, portfolio and my email down below so you could contact me. I would appreciate if you could share my information with anyone you know who might need a Front end developer or to your company if they have a vacancy. Anyways, thank you.
    Resume - drive.google.c...
    Portfolio - shanjairaj-dev...
    Email - shanjairajdev@gmail.com
    GUIDE TO DESIGNING BEAUTIFUL USER INTERFACES:
    *USE PROMO CODE **awesomeui200* TO GET 20% OFF
    📙 Purchase the Book here - bit.ly/purchas...
    TOOLS OF THE TRADE:
    💻 Laptop - amzn.to/2Wr7Wyg
    ⌨️ Keyboard - amzn.to/2WqMeux
    🖱️ Mouse - amzn.to/392dg0d
    🎤 Budget Microphone - amzn.to/2CKYvTV
    GET IN TOUCH:
    If you follow me on Instagram(shanjai_raj) or Twitter(shanjai_raj), drop me a message saying you came from my TH-cam channel. It'll help me to know my audience and connect with each and every one of you.
    🎥 Instagram - / shanjai_raj
    🐦Twitter - / shanjai_raj
    IF YOU WANT TO SUPPORT ME:
    Subscribe - bit.ly/subscri...
    If you have any questions or any inquiries, the best way to reach me is to drop me an email. I will reply to your email as soon as possible.Thanks for watching, and let's meet in the next video.
    *Some of the links are affiliate links, therefore, if you use those link to make a purchase, I may get a comission off that referral. It won't cost you any additional money. Thanks for the support.

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

  • @zeeshanasgar1810
    @zeeshanasgar1810 ปีที่แล้ว +5

    What an Awesome way and literally really easy to understand Redux just because of your watching video,
    I didn't get anything before watching your videos,
    and now I implement redux in my project just because of you.
    Thank you so much!! Really helpful.

  • @AbhishekVerma-dv1jd
    @AbhishekVerma-dv1jd 3 ปีที่แล้ว +14

    Thanks. It's a useful video for the one's who started learning react and react redux.
    Short and crisp.

    • @ShanjaiRaj
      @ShanjaiRaj  3 ปีที่แล้ว

      Thanks a lot Abishek, let me know if you would want any other videos on the channel.

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

      @@ShanjaiRaj sorcecode pls

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

      @@ShanjaiRaj how you'll define routes that use the data that you stored in Redux?
      Please I need an answer

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

      @@onughadaniel5449 need answear too how abt now know?

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

    .login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    align-items: center;
    font-family: "Inter";
    }
    .login__form {
    display: flex;
    flex-direction: column;
    }
    .login__form> h1 {
    font-style: 35px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    letter-spacing: -1px;
    }
    .login__form >input {
    min-width: 380px;
    padding: 22px 0px;
    padding-left: 15px;
    margin-bottom: 10px;
    outline: none;
    border: 1px solid rgba (0,0,0,0.24);
    font-family: "Inter";
    border-radius: 2px;
    font-size: 15px;
    }

  • @qingyachen3990
    @qingyachen3990 2 ปีที่แล้ว

    watched a lot redux, this is the only one solves my problem, just pass data not change it. Thank you so much

    • @fuduc4606
      @fuduc4606 2 ปีที่แล้ว

      redux persist solve it bro !

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

    What if logged in user refresh the page all the data is lost and user have to login again

    • @Dennis-en6rt
      @Dennis-en6rt 5 หลายเดือนก่อน

      This is 6 months late for you haha but it may help another user who comes across this: I used redux-persist to get around this issue!

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

    that's amazing very helpful and useful .. keep Going

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

    very helpful video and easy to understand...❤❤❤❤

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

    Logout.css
    .logout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: "Inter";
    }
    .logout__button{
    min-width: 200px;
    padding: 17px 30px;
    margin-top: 20px;
    background: black;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    }

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

      You are saviour.

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

    Thanks a lot. If key and value have the same name you can short it. Instead of {name:name} just {name}

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

    but what will happend when user reload the browser , please make some complete video where user will be set to cookies or localstorage and will validate identity with token

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

    Thankyou so much for uploading this help full video❤

  • @VinodKumar-sd6zk
    @VinodKumar-sd6zk 3 ปีที่แล้ว +18

    it will be helpful if you provide github link??

    • @vipe_1
      @vipe_1 2 ปีที่แล้ว

      Will leave it here if anyone ever needs it:
      github.com/shanjairaj7/Basic-redux-project-TH-cam

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

    Very Clean and Understandable Code
    Thank you very Much !

  • @VishalYadav-rl9mb
    @VishalYadav-rl9mb 3 ปีที่แล้ว

    He he copy and paste from some where you need to explore more dear👍🏻👍🏻

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

    This video helped me a lot. Thank you!

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

    thank you for this video , just for mention did you try to refresh the page after login ( the state will be inisialed ) so this implementation will not work properly in real world applications

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

    in 24:19 error debugging was not clear , i am stuck. could you please help

  • @asemanurzhankyzy9802
    @asemanurzhankyzy9802 2 ปีที่แล้ว

    Thanks a lot. It's a cool video for beginners in react+redux.

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

    Do a tutorial on how to create a login post api please 🥺 with redux.

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

    userReducer is not defined in userSlice about how it is imported in store.I'm getting error there

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

    Can anyone clarify me in question for localstate(here user, email, password), why you have used hooks.... Can we not do it also with redux??? Coz after all they are also state
    Please if anyone can clear this!

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

      Hi Sharique. Thanks for watching the video, really appreciate that.
      Actually, you can use local state, hooks is the way of managing state in functional components which is what we are using. So that's why, we are using hooks.
      You can also do it without redux, but when it's a large application, you might want to use the data across all other pages and components, that's why we are using redux.
      Hope this clarifies your question!

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

      @@ShanjaiRaj ya... But is there a way to manage local state like here user email with redux but not hooks?????

  • @SERBIANUGANDANKNUCKLES
    @SERBIANUGANDANKNUCKLES 2 ปีที่แล้ว

    i got this error pls help
    Unable to resolve module react-redux from C:\Users\stefa\gamezone\App.js: react-redux could not be found within the project or in these directories:
    node_modules
    If you are sure the module exists, try these steps:
    1. Clear watchman watches: watchman watch-del-all
    2. Delete node_modules and run yarn install
    3. Reset Metro's cache: yarn start --reset-cache
    4. Remove the cache: rm -rf /tmp/metro-*
    5 | import 'react-native-gesture-handler';
    6 |
    > 7 | import {Provider} from 'react-redux';
    | ^
    8 | import store from './app/store';
    9 |
    10 | ReactDOM.render(

  • @codingdots4605
    @codingdots4605 2 ปีที่แล้ว

    Thanks a lot man You saved my life.

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

    the only logic i didnt understand is assigning selectuser as state.user.user .please explain this

  • @shafqatbutt1136
    @shafqatbutt1136 2 ปีที่แล้ว

    upload a video of redux persist in using this project

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

    So clean.Thanks!

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

    Is anyone able to implement this
    ????
    this looks like a incomplete video

  • @marcinbednarz4461
    @marcinbednarz4461 2 ปีที่แล้ว

    Molto bene!!! Amazing work mate! :) Thank you!

  • @ashwiniramesh27
    @ashwiniramesh27 2 ปีที่แล้ว

    Thanks, it's a a useful video for beginners.

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

    could you please provide the source code ? Thanks

  • @SHUBHAMSINGH-co9nh
    @SHUBHAMSINGH-co9nh 3 ปีที่แล้ว

    Thanks for the support...

  • @bobweee888
    @bobweee888 3 ปีที่แล้ว

    actual real ract developer unlike 999%^ of other channels yes i know what im saying.

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

      can anyone please let that how to change route before and after logging in and log out of a user?

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

    i was trying to implement this tutorial in my project but got some typeError for dispatcher as useMemo cant be null and basically getting because provider was not able to get value from store can u please help

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

    helps a lot thanks bro, already subscribed !

    • @ShanjaiRaj
      @ShanjaiRaj  3 ปีที่แล้ว

      Thanks a lot bro, glad it was helpful for you

  • @hoangvutechnology2985
    @hoangvutechnology2985 3 ปีที่แล้ว

    Thanks so much for your video. It very good.

  • @suminbaek
    @suminbaek 2 ปีที่แล้ว

    Gracias por ponerlo tambien en castellano, saludos desde Argentina

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

    How to connect this with backend? Could you please tell??

  • @stuartbean2447
    @stuartbean2447 2 ปีที่แล้ว

    Only just seen this video - great introduction as a beginner for me - can I get the link to the github for this code please

    • @stuartbean2447
      @stuartbean2447 2 ปีที่แล้ว

      Found it - and so much more - I look forward to watching more of your videos and working through more of your projects - thank you.

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

    do you have a link to this repository in github?

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

    Great job sir

  • @aakash600
    @aakash600 2 ปีที่แล้ว

    If the logout page is refreshed it is going to the login page. Can any one help me with this.

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

    "what do you mean by doing login with Redux? They are totally different things, aren't they?"
    Please can I get an answer ?

  • @edwardperkins1004
    @edwardperkins1004 2 ปีที่แล้ว

    Thnks, it very useful

  • @r.bintangbagusputraangkasa6006
    @r.bintangbagusputraangkasa6006 3 ปีที่แล้ว +1

    next time, make the vscode zoomed please haha :D or set a big font

  • @laxmannemane5348
    @laxmannemane5348 2 ปีที่แล้ว

    Hello thanks for amazing content and i have to one doubt when i log in then i refresh the page and user detail will be gone then what can i do

  • @12_adesh_mahto_csbs66
    @12_adesh_mahto_csbs66 ปีที่แล้ว

    Thankuh buddy❤️

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

    where is that git link ?

  • @KewalTravel
    @KewalTravel 2 ปีที่แล้ว

    what shortcut u used at time 9:15 sec which put all attributes of input in different lines?

  • @drawbit4370
    @drawbit4370 3 ปีที่แล้ว

    Veru useful tutorial, thanks bro ;D

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

    thanks dear!!!!!!!!!!!!!!!

  • @manojkumarpatil1343
    @manojkumarpatil1343 3 ปีที่แล้ว

    Thanks for the video Sir

  • @johnkamau3442
    @johnkamau3442 2 ปีที่แล้ว

    Good Job

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

    Thanks man .....

  • @user-kq5ow1zv3m
    @user-kq5ow1zv3m 11 หลายเดือนก่อน

    спасибо огромное!видео-супер!!!!!

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

    Thanks bro 🙏🏽

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

    there is no authentication, user can directly go to logout page without login

    • @mannanbaidi4836
      @mannanbaidi4836 2 ปีที่แล้ว

      Hey!! That's my doubt too.. Did you find any alternative way?

    • @achuthans7282
      @achuthans7282 2 ปีที่แล้ว

      you have to set up backend and database to check the incoming credentials to do that, it would take 20 mins in the video to do that.. hope cleared your doubt:)

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

    hi shanjai, have an query what if we refresh the page, does that gonna clear all the values or that gonna stay there

    • @Sam-kl8dm
      @Sam-kl8dm 2 ปีที่แล้ว +1

      It will clear all the values. If you want to save the values you have to use a database or save the values in the browser :)

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

      If u want to save use db or localstorage

  • @simpleshorts389
    @simpleshorts389 3 ปีที่แล้ว

    Lots of thanks bro
    ❤❤❤❤❤❤

  • @vittoriopinti6390
    @vittoriopinti6390 2 ปีที่แล้ว

    but after a page refresh i lost login data

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

    Excellent video, can you please share the code in git

  • @prakhar.odyssey
    @prakhar.odyssey 3 ปีที่แล้ว

    good video bro! Appreciate the tutorial 🙌🏾

  • @devwithangel
    @devwithangel 3 ปีที่แล้ว

    Thanks for your videos 🤩

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

      Your welcome, glad it helped you

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

    What about persisting a new user to database with a signup form?

    • @aankushchauhan
      @aankushchauhan 3 ปีที่แล้ว

      can anyone please let that how to change route before and after logging in and log out of a user?

    • @0x656e
      @0x656e 2 ปีที่แล้ว +1

      @@aankushchauhan for that you have to use a router such as react-router-dom and create public and private routes. if user is logged in redirect the public route to private. such as dashboard.

  • @engineeroncamera8711
    @engineeroncamera8711 2 ปีที่แล้ว

    Helpful 💯

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

    github link?

  • @yalamandareddy2152
    @yalamandareddy2152 2 ปีที่แล้ว

    Hi Bro , where did I found this project code...can u pls share it!

  • @oleh_hrytsyk
    @oleh_hrytsyk 3 ปีที่แล้ว

    how to use localstorage with redux slice ?

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

    bhai way to teaching is just not understandable, got confuse in ur "ah ah oummm um...yeah , no "

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

    can you source code for this project

  • @meowmeow3807
    @meowmeow3807 3 ปีที่แล้ว

    i am unable to get the logged in data in redux

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

    I cant find the github rep

  • @farzeenshareef1380
    @farzeenshareef1380 3 ปีที่แล้ว

    hey could u do more redux projects if possible?

  • @akshaymewara7674
    @akshaymewara7674 2 ปีที่แล้ว

    Thanks

  • @ragulkanna2467
    @ragulkanna2467 2 ปีที่แล้ว

    Bro redux toolkit pathi oru video podunkalae

  • @madhan5791
    @madhan5791 3 ปีที่แล้ว

    Thanks bro

  • @howfainfo5362
    @howfainfo5362 3 ปีที่แล้ว

    Hello sir, after logging in if i refresh the page i get logged out. How do i keep user logged in after refresh i need am answer please

    • @phuongphongphu
      @phuongphongphu 3 ปีที่แล้ว

      U can try to save an accessToken in localStorage

  • @usmanmustapha6149
    @usmanmustapha6149 2 ปีที่แล้ว

    The Github link sir?

  • @user-lx8gu8eh9e
    @user-lx8gu8eh9e ปีที่แล้ว

    where is the source code for this

  • @rajendrakashyap408
    @rajendrakashyap408 2 ปีที่แล้ว

    Sir please take in this project call the get api please sir

  • @RupeshSahu-ky3bz
    @RupeshSahu-ky3bz 2 ปีที่แล้ว +1

    sir github link

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

    where is github code?

  • @jaiveery
    @jaiveery 3 ปีที่แล้ว

    but if i want to get the email info then

  • @rajeshweb7594
    @rajeshweb7594 3 ปีที่แล้ว

    Nice

  • @judahnime
    @judahnime 3 ปีที่แล้ว

    where is the css link? :(
    nothing on the description

  • @mohitsavani1872
    @mohitsavani1872 2 ปีที่แล้ว

    all state are clear on page reresh

  • @nabeelkhan-ck8bq
    @nabeelkhan-ck8bq 2 ปีที่แล้ว

    where is the github link

  • @The_Daily_Shorts
    @The_Daily_Shorts 3 ปีที่แล้ว

    Helper, how do I validate this on redux form?

    • @ShanjaiRaj
      @ShanjaiRaj  3 ปีที่แล้ว

      You could have validation functions, it's simple right

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

    I don't understand the concepts properly and you don't properly explain those. And you haven't provide the sample project in a git link

  • @vikas7769
    @vikas7769 3 ปีที่แล้ว

    Bro I need help

  • @hadenlee7184
    @hadenlee7184 2 ปีที่แล้ว

    Your name what?

  • @amitsharma-te4kd
    @amitsharma-te4kd 2 ปีที่แล้ว +1

    english thik bolliya kar ... jyada Angrej kyo bnra h

  • @kelangirajkiran6133
    @kelangirajkiran6133 2 ปีที่แล้ว

    Source code pls

  • @vishwajeetkumar1583
    @vishwajeetkumar1583 2 ปีที่แล้ว

    can anyone provide me source code

  • @sagaraman639
    @sagaraman639 3 ปีที่แล้ว

    bro source code?

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

    bhai sorce code de

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

    poor explanation of all concepts.

  • @jaiveery
    @jaiveery 3 ปีที่แล้ว

    also your portfolio you copied

  • @SatyamSingh-qc7te
    @SatyamSingh-qc7te 3 ปีที่แล้ว +4

    pls share github link

  • @harishkumar-zx6vg
    @harishkumar-zx6vg 3 ปีที่แล้ว

    Thalaiva, code share pannunga 😁

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

      Sure thalaiva, maranthuten

  • @mohamedasif9074
    @mohamedasif9074 2 ปีที่แล้ว

    paithiyame da niii