HOC
Premise If you don't need to maintain state, it's prefer to use function component than class component. But, If you've already implemented class component, you also need to know how to change it. I also implemented a class component using…
Environment React Native React Navigation 4.x node Premise Typically, react navigation's header options are written in App.js. However, this is undesirable for two reasons: App.js gets bigger and more complex Knowledge specific to each scr…
Environment React Native node Premise When there is a utility function you'd like to use in common during each components, you can do it easily via props by using HOC. Using common.js which provides common utility functions has the fault a…