25 thoughts to “React Redux Login, Logout, Registration example with Hooks”

  1. Great tutorial, thank you so much the time you put into this.
    Just one thing, you didn’t include the Provider wrapper for the redux store. I think it’s pretty clear where to put it when you already have done it once, but I might be confusing for beginners.
    Cheers

  2. Hi @bezkoder
    Great tutorial! I have a small problem though. I’ve noticed that you didn’t use store.js anywhere in the tutorial. I tried to pass it to the provider in the root index.js but I get an error telling me that I exported something wrong. Can you help me, how to use the store properly?

    1. import React from “react”;
      import ReactDOM from “react-dom”;
      import App from “./App”;
      import { Provider } from “react-redux”;
      import store from “./store”;

      ReactDOM.render(

      ,
      document.getElementById(“root”)
      );

    2. I noticed this same thing too. Hopefully you were able to figure it out already but, for anyone else who is wondering, here is what I added to `index.js` to connect the store. Hope it helps!

      `

      import { Provider } from ‘react-redux’;

      import store from ‘./store’;

      ReactDOM.render(

      ,
      document.getElementById(‘root’)
      );
      `

Leave a Reply

Your email address will not be published. Required fields are marked *