Redux connect humor
In Redux you learned about the “connect” function. It takes two functions and returns a function. If you pass a React component into that returned function, then out comes another...
read moreredux-thunk humor
When using React Redux for asynchronous calls, it is common to use the “redux-thunk” module. Who comes up these names? With a name like that, the joke practically writes...
read moreTutorial on Redux combine reducers
In the last tutorial (where you can get the source code there), we had one reducer.js … For the purpose of this tutorial, let’s convert that one reducer to three separate reducers in:...
read moreTutorial using redux-thunk to call API
Continuing from the last Redux tutorial, in this tutorial we will have our app retrieve some ToDo items using axios utility. We will retrieve from this API...
read moreRedux Tutorial on mapDispatchToProps
In the last tutorial, we see that the ToDo component is calling the addToDo action creator to create an action that is dispatch by the store’s dispatch method … This is a bit verbose. ...
read moreTutorial on Action Creators in Redux
Continuing directly from our previous tutorial, now we start to use an “action creator”. In our ToDo component, we are dispatching an action object like this … This has a bit of...
read moreReact Redux actions as string constants in separate file
In our React Redux tutorial, we tried to keep things as simple as possible to begin. Hence, it was using strings as the action type … In larger more complex apps, there are some advantages...
read moreDifference between Redux and Mobx
I once asked the question of what is the differences between Redux and Mobx. The both provide state management for React apps. So I wrote a ToDo app using Redux and separately with Mobx. You can...
read moreAll contents are opinions and are copyrighted and may contain display ads and ad links for which site may receive revenues from.
See Terms of Use and Privacy Policy.