React Redux login form tutorial
Using React and Redux I show you how to build a login and signup flow.
We go over using a simple library for managing forms.
We use strapi.io which I cover extensively in my strapi.io course (ask in the comments for discount coupon).
We use Semantic UI React to make the app look decent
Then we build forms using the Semantic Ui Form Component.
We create a function “generateInput” and “handleInputChange” so that we can generate inputs that are connected to the state in a very fast fashion.
Our login and signup are connected to Redux through the “loginUser” and “signupUser” action creators.
Our reducer for users is very straight forward.
The only thing we store in our localStorage is our JWT token.
We can get the current user by using this and querying the /users/me endpoint.
I explain this more thoroughly in my Strapi.io videos and tutorials