Our great sponsors
-
For this code snippet, redux, react-redux, redux-logger were installed.
-
For this code snippet, redux, react-redux, redux-logger were installed.
-
Klotho
AWS Cloud-aware infrastructure-from-code toolbox [NEW]. Build cloud backends with Infrastructure-from-Code (IfC), a revolutionary technique for generating and updating cloud infrastructure. Try IfC with AWS and Klotho now (Now open-source)
-
For this code snippet, redux, react-redux, redux-logger were installed.
-
Given we have installed a logging library in our app, we can view from our console State is Being Updated from Screen Three regardless of where state got updated. This behaviour of the state always been updated can really slow down the app. To mitigate this, the state should be memoized. With memoization, only the component where state changed will get re-rendered. To memoize out react state, we use a library called reselect. This code snippet shows a simple reselect setup: