Tagged articles
Props
13 articles · Page 1 of 1
This article presents nine concise JSX techniques—such as using clsx for class concatenation, proper short‑circuit rendering, extracting deep ternaries, forwarding props with ...rest, leveraging children, memoizing style objects, correct comment syntax, fragment shorthand, and minimal boolean attributes—to boost code readability and component flexibility in React development.
Code styleJSXProps
0 likes · 7 min read

This article walks through twelve concrete TypeScript best‑practice patterns for React—covering props typing, avoiding React.FC, proper children and event types, useState and useRef inference, generic components, API‑driven type generation, strict mode, and utility types—to boost productivity and type safety.
PropsReactTypeScript
0 likes · 10 min read

This article provides a comprehensive guide to Vue 3 component communication, covering parent‑to‑child props, child‑to‑parent emit, sibling communication via parent mediation, event bus, Pinia state management, provide/inject, shared reactive objects, and component instance references, with code examples and a comparison table.
EmitEvent BusPinia
0 likes · 13 min read

This article explains Airbnb’s Android Trio framework, focusing on Props—a Kotlin data‑class mechanism that lets parent pages safely pass mutable data and callbacks to child Compose pages, illustrated with inbox and Todo screen‑flow examples and complete code snippets.
AndroidJetpack ComposeKotlin
0 likes · 14 min read

Explore seven core methods for React component communication—including Props, State Lifting, Context, Refs, Hooks, Event Emitters, and Redux—detailing practical code examples, key considerations, and best practices to help developers choose the optimal approach for various application scenarios.
ContextPropsReact
0 likes · 16 min read


ByteFEApr 19, 2021 · Frontend Development
This guide covers the essential TypeScript knowledge for React development, demonstrating how to import React, declare functional components with React.FC, use core hooks such as useState, useRef, useEffect, useMemo, create custom hooks, handle defaultProps, choose between type and interface, type props, manage forms and events, work with operators, and apply generic patterns for reusable components.
PropsReactTypeScript
0 likes · 23 min read

This article explains how Vue’s mergeOptions function merges constructor and instance options, detailing the normalization of props, inject, and directives, and how extends and mixins are recursively combined to produce the final component configuration.
DirectivesInjectJavaScript
0 likes · 10 min read

This article presents eight practical ways to write cleaner, more readable React code, covering conditional rendering, boolean and string props, event handlers, component‑as‑prop patterns, undefined props, state updates, and general JavaScript clean‑code practices, each illustrated with bad and good examples.
Conditional RenderingPropsbest-practices
0 likes · 11 min read

Vue.js offers multiple component communication techniques—including one‑way props, $emit/$on events, an event bus, $attrs/$listeners, provide/inject, direct $parent/$children/$refs access, Vuex state management, and slot‑based patterns—enabling flexible data flow between parents, children, siblings, and distant descendants.
$onEmitProps
0 likes · 18 min read


政采云技术Aug 27, 2019 · Frontend Development
This article reviews various Vue.js component communication techniques—including Props, $emit/$on, Vuex, $attrs/$listeners, Provider/Inject, and $parent/$children/$refs—providing explanations, usage scenarios, and code examples to help developers choose the appropriate method for parent-child, sibling, or cross-level data exchange.
PropsVue.jsVuex
0 likes · 12 min read

This article explores how coupling and cohesion influence React component design, compares several prop‑passing techniques—from static components to object, selective, map/array, and child‑object approaches—and offers guidance on selecting the most suitable pattern based on project context and maintainability.
CohesionPropsReact
0 likes · 12 min read

Zuo Ming explains React’s component architecture—props, state, lifecycle methods, server‑side rendering, and React‑Native—using a bamboo water‑wheel analogy, demonstrating prop validation, state updates, lifecycle phases, SSR hydration, cross‑platform code reuse, and unit testing to give front‑end engineers a complete practical foundation.
PropsReactReact Native
0 likes · 12 min read

This article explains the various relationships between React components—parent‑child, sibling, and deeper hierarchies—and demonstrates how to handle communication using props, callback functions, the spread operator, an observer pattern, and state‑management libraries like Flux and Redux.
FluxObserver PatternProps
0 likes · 13 min read
