Tagged articles
8 articles
Page 1 of 1
Sohu Tech Products
Sohu Tech Products
Feb 19, 2025 · Frontend Development

Comprehensive Guide to React State Management

This guide explains React state management fundamentals, covering local state with useState, useReducer, class components, and custom hooks; global solutions such as Context API, Zustand, Jotai, and Redux; and server‑side handling using React Query, SWR, plus navigation and form state best practices.

Context APICustom HooksForms
0 likes · 30 min read
Comprehensive Guide to React State Management
KooFE Frontend Team
KooFE Frontend Team
Feb 5, 2025 · Frontend Development

Making React Components Open‑Closed: Extensible Patterns and Refactoring

This article explains how the Open‑Closed Principle applies to React development, demonstrating anti‑patterns and refactoring techniques—including base components, composition, higher‑order components, and custom hooks—to create extensible, maintainable UI elements while keeping tests simple.

Custom HooksHigher-Order ComponentsOpen/Closed Principle
0 likes · 7 min read
Making React Components Open‑Closed: Extensible Patterns and Refactoring
ByteFE
ByteFE
May 10, 2024 · Frontend Development

Understanding and Using Custom Hooks (Composition API) in Vue 3

This article explains the concept of custom hooks—known as the Composition API—in Vue 3, discusses when and why to use them for logic reuse, provides practical examples and code snippets, and shares a curated list of useful Vue 3 hook libraries and resources.

Composition APICustom HooksJavaScript
0 likes · 9 min read
Understanding and Using Custom Hooks (Composition API) in Vue 3
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 8, 2024 · Frontend Development

Sharing State Between Parent and Child Components in React: useImperativeHandle vs useShareState Hook

This article examines the common React modal communication problem, compares the conventional controlled‑component callback approach with the useImperativeHandle solution, and introduces a novel pair of hooks (useShareState and useShareValue) that enable seamless state sharing between parent and child components.

Custom HooksReactfrontend
0 likes · 19 min read
Sharing State Between Parent and Child Components in React: useImperativeHandle vs useShareState Hook
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 17, 2023 · Frontend Development

Comprehensive Vue 3 Tutorial: Project Setup, Option vs Composition API, and Custom Hooks

This tutorial walks through creating a Vue 3 project, explains key changes and the differences between Option API and Composition API, demonstrates useful CLI commands, and provides detailed examples of custom composable hooks such as useWindowSize, usePagination, and useFetch, along with best practices.

Composition APICustom HooksOption API
0 likes · 19 min read
Comprehensive Vue 3 Tutorial: Project Setup, Option vs Composition API, and Custom Hooks
ByteFE
ByteFE
May 12, 2021 · Frontend Development

Using @vue/reactivity in React: Custom Hooks and HOC for Reactive State

This article demonstrates how to leverage the @vue/reactivity package inside React by creating a custom useReactive hook for function components and a reactiveHoc higher‑order component for class components, explaining the underlying concepts, implementation steps, and practical usage with full code examples.

Custom HooksHigher-Order ComponentReact
0 likes · 7 min read
Using @vue/reactivity in React: Custom Hooks and HOC for Reactive State