10. React+Thunk+ActionCreator+Reducer+post

Published: 01 January 1970
on channel: It-Patsan-US
73
4

Hi guys, glad to see you again. Today we will continue repeat what we have learned. The post method will help us with this. We should add users.
And so let's start with the components, we write:
ok, we wrote a call to the components. Now let's write the component itself:

Nothing new for us inside. We have to dispatch the Thunk Creator. Inside we pass the Id&title of the user we want to remove. It's done
Let's go create Thunk.

here we wrot getState but we didn’t pass it,but what we did?We said that we should to take it and we took getState and then we wrot a type we took this type from store.

And then we get to the request to the server. Of course, we go there and see how to do it.

We should go to AXIOS, and there type out a new request. Draw attention, we are passing here title.

ok.Let’s write her a case:

Congratulations! We did it, and now we can see our result. Finally we should push our project to GitHub, and check how it works in Heroku.
Ok.
You can see my code in GitHub under this video. Subscribe to my channel and invite all your friends. In the next video we will create a new component. Keep in mind, that the man who couldn’t be a programmer has not been born yet.
gitHub:https://github.com/developeryudintsev...


On this page of the site you can watch the video online 10. React+Thunk+ActionCreator+Reducer+post with a duration of hours minute second in good quality, which was uploaded by the user It-Patsan-US 01 January 1970, share the link with friends and acquaintances, this video has already been watched 73 times on youtube and it was liked by 4 viewers. Enjoy your viewing!