Tagged articles

Hooks

217 articles · Page 3 of 3
QQ Music Frontend Team
QQ Music Frontend Team
Nov 9, 2019 · Frontend Development

5 Ways to Reuse and Extend React Component State Logic

This article explains five approaches—Mixins, Class Inheritance, Higher‑Order Components, Render Props, and Hooks—for reusing and extending state logic in React components, comparing their advantages, drawbacks, and providing code examples to illustrate each method.

Higher-Order ComponentHooksReAct
0 likes · 11 min read
5 Ways to Reuse and Extend React Component State Logic
GF Securities FinTech
GF Securities FinTech
Aug 1, 2019 · Mobile Development

How to Upgrade React Native to 0.59.10 for 64‑Bit Support

This guide explains why Google’s 64‑bit requirement forces a React Native upgrade, outlines the benefits of moving to version 0.59.10, and provides step‑by‑step instructions for updating iOS, Android, Babel configuration, native modules, and handling deprecated components and API changes.

64-bitAndroidXHooks
0 likes · 10 min read
How to Upgrade React Native to 0.59.10 for 64‑Bit Support
Ctrip Technology
Ctrip Technology
Jul 18, 2019 · Frontend Development

React Hooks: From Mixins and HOCs to Custom Hook Implementations and Production Practices

This article explains the evolution of React component reuse—from legacy mixins and higher‑order components to modern React Hooks—provides step‑by‑step implementations of custom hooks such as useLogTime, useFetchHook, useInterval and useImgLazy, and demonstrates how to apply them in real‑world production code for better performance and maintainability.

CustomHookFrontendHOC
0 likes · 22 min read
React Hooks: From Mixins and HOCs to Custom Hook Implementations and Production Practices
Didi Tech
Didi Tech
Jul 13, 2019 · Frontend Development

Unlocking Webpack’s Tapable: How Hooks Power Efficient Builds

This article explains the inner workings of Tapable—the hook library behind Webpack—by detailing its synchronous and asynchronous hook types, registration and invocation methods, the lazy‑compilation code‑generation process, and how these mechanisms give Webpack a performance edge over naïve event loops.

Build ToolsHooksJavaScript
0 likes · 17 min read
Unlocking Webpack’s Tapable: How Hooks Power Efficient Builds
MaoDou Frontend Team
MaoDou Frontend Team
May 20, 2019 · Frontend Development

Mastering React Hooks: Practical Guide, Patterns, and Performance Tips

This article explains React Hooks introduced in version 16.8, their backward‑compatible design, how they replace class components, and provides detailed guidance on using useState, useEffect, custom hooks, useReducer, useRef, useMemo, useCallback, and related linting rules with performance‑focused examples.

HooksJavaScriptReAct
0 likes · 16 min read
Mastering React Hooks: Practical Guide, Patterns, and Performance Tips
UC Tech Team
UC Tech Team
Feb 18, 2019 · Frontend Development

React Hooks – Introduction, Usage, Tooling, and Changelog

This article introduces React Hooks, explains how they enable state and other React features without classes, provides official resources, outlines migration advice, details supported packages, tooling integrations, testing APIs, installation methods, and summarizes the changelog and post‑alpha updates for the stable 16.8 release.

ESLintFrontendHooks
0 likes · 12 min read
React Hooks – Introduction, Usage, Tooling, and Changelog
UC Tech Team
UC Tech Team
Dec 26, 2018 · Frontend Development

Reflections on the Design, Implementation, and Future of React Hooks

The article provides a comprehensive analysis of React Hooks, covering their injection model, persistent call ordering, debugging and testing strategies, API design considerations such as useReducer, Context Provider, useEffect, missing APIs, type handling, compilation optimizations, safety concerns, and the overall motivation behind moving from class components to hooks.

API designDebuggingFrontend
0 likes · 21 min read
Reflections on the Design, Implementation, and Future of React Hooks
UC Tech Team
UC Tech Team
Nov 28, 2018 · Frontend Development

React 16 Roadmap: Upcoming Features and Release Timeline

This article outlines the React 16 roadmap, detailing the planned release schedule for Suspense code‑splitting, Hooks, Concurrent Mode, data‑fetching Suspense, and related experimental projects, while explaining their current status across React DOM, server rendering, and React Native.

Concurrent ModeFrontendHooks
0 likes · 13 min read
React 16 Roadmap: Upcoming Features and Release Timeline
37 Interactive Technology Team
37 Interactive Technology Team
Nov 28, 2018 · Game Development

Business System Architecture Design: An Engineer's Guide to Game Event Systems

The article explains how engineers can design robust game special‑event systems by abstracting features into reusable components, applying hook‑based extensibility, and using asynchronous message middleware to handle diverse, time‑critical, high‑risk operations, illustrated with the 37 Platform’s event architecture and configuration‑driven flexibility.

HooksMessage MiddlewareRedis
0 likes · 9 min read
Business System Architecture Design: An Engineer's Guide to Game Event Systems
Xianyu Technology
Xianyu Technology
Jul 20, 2018 · R&D Management

Linking Code Commits with Work Items Using Git Hooks and CLI Tools

The article describes a low‑cost solution that uses Git hooks and a custom CLI tool to automatically embed work‑item IDs from branch names or interactive selection into commit messages, enabling seamless traceability between code commits and requirements or defects and simplifying automated testing and team collaboration.

AutomationCLICommit Message
0 likes · 13 min read
Linking Code Commits with Work Items Using Git Hooks and CLI Tools
Qunar Tech Salon
Qunar Tech Salon
Mar 28, 2018 · Frontend Development

Key New Features and Architectural Changes in React 16

This article reviews the major additions and deprecations introduced in React 16, including component array returns, portals, error boundaries, fragments, strict mode, the new context API, createRef/forwardRef, fiber architecture, and async rendering utilities, illustrated with code examples.

Context APIFrontendHooks
0 likes · 9 min read
Key New Features and Architectural Changes in React 16
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jul 11, 2017 · Frontend Development

Master Angular Component Lifecycle: Hooks, Order, and Best Practices

This article explains Angular’s component lifecycle, detailing each hook—from ngOnChanges and ngOnInit to ngAfterViewChecked and ngOnDestroy—their execution order, purposes, and how constructors differ, supplemented with diagrams and console output examples to help developers effectively manage component initialization, change detection, and cleanup.

AngularHookscomponent lifecycle
0 likes · 4 min read
Master Angular Component Lifecycle: Hooks, Order, and Best Practices
21CTO
21CTO
Mar 11, 2016 · Backend Development

How WordPress Achieves Extensibility with Meta Tables and Hook System

This article explains how WordPress uses the wp_postmeta table for flexible metadata storage and the hook (action) system for dynamic code insertion, illustrating both the benefits and trade‑offs of these extensibility techniques for plugin development.

DatabaseHooksMeta
0 likes · 8 min read
How WordPress Achieves Extensibility with Meta Tables and Hook System