How to debug your React Native?
Follow the below steps to debug React Native app:
- Run your application in the iOS simulator.
Command + Dand a webpage should open up at
- Enable Pause On Caught Exceptions for a better debugging experience.
Command + Option + Ito open the Chrome Developer tools, or open it via
- You should now be able to debug as you normally would.
What is reselect and how it works?
Reselect is a selector library (for Redux) which uses memoization concept. It was originally written to compute derived data from Redux-like applications state, but it can't be tied to any architecture or library.
Reselect keeps a copy of the last inputs/outputs of the last call, and recomputes the result only if one of the inputs changes. If the the same inputs are provided twice in a row, Reselect returns the cached output. It's memoization and cache are fully customizable.