rizalibnu / ReactNativeHooksExample

Coding example to compare HOC vs Render Props vs Hooks with React Native

Repository from Github https://github.comrizalibnu/ReactNativeHooksExampleRepository from Github https://github.comrizalibnu/ReactNativeHooksExample

ReactNativeHooksExample

Code example to compare HOC vs Render Props vs Hooks with React Native

Setup

Follow react native getting started guide : https://facebook.github.io/react-native/docs/getting-started.html

  1. Clone the repo
  2. $ cd ReactNativeHooksExample
  3. Run either $ yarn or $ npm install
  4. Run $ yarn start or $ npm run start
  5. Run $ react-native run-android or $ react-native run-ios
  6. You need to install React Developer Tools to check React component hierarchy

License

Released under the MIT License. Check LICENSE file for more info.

© 2019 by @rizalibnu

About

Coding example to compare HOC vs Render Props vs Hooks with React Native

License:MIT License


Languages

Language:JavaScript 70.6%Language:Objective-C 15.9%Language:Python 8.0%Language:Java 5.5%