Keynote: Hook up your ReactNative app
summary
Hooks bring state and lifecycle into functions so components avoid classes and heavy HOC wrapping; React Native adds hooks in 0.59. Examples show useState for local state, useReducer for complex objects, and useEffect for API calls, listeners and cleanup. Custom hooks implement keyboard listeners (removing leaks) and a reusable ripple animation (moved out of components to simplify testing). Limitations include missing lifecycles (componentDidCatch, getSnapshotBeforeUpdate), slightly worse benchmarks vs HOCs, and extra test setup for hooks.
AI-written summary · about








