It's All Writing.

Writing makes you happy.

HOC

How to change from a class component which using MobX to a function component in React Native

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…

How to custom react navigation's header options each screen which using HOC at React Native

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…

How to provide utility functions for every components ( How to make HOC ( higher-order component ) ) at React Native

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…