Tagged articles
component communication
18 articles · Page 1 of 1
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 compares React 18 and Vue 3 component communication techniques—including parent‑child, sibling, and cross‑level patterns—provides detailed code examples for props, emit, context, provide/inject, and summarizes their respective advantages and use cases in modern web development.
Context APIJavaScriptReact
0 likes · 13 min read

This article comprehensively outlines thirteen distinct methods for component communication in Vue 3, covering parent‑to‑child props, child‑to‑parent emits, sibling communication via mitt, $attrs, refs, v‑model, provide/inject, router parameters, Vuex, Pinia, browser storage, window object, and globalProperties, with concise code examples for each.
JavaScriptVueVue3
0 likes · 14 min read

This article explains how to use Vue 3's ref and shallowRef for reactive state, demonstrates one‑way data flow between parent and child components via props and events, and introduces a custom useRefState composable that mimics React's useState for cleaner state management.
RefState ManagementVue
0 likes · 10 min read

This tutorial demonstrates how to build a four‑level province‑city‑district‑town address cascade selector using a custom dialog in Huawei HarmonyOS, covering preparation, custom dialog creation, component communication, logic implementation, and data handling with complete code examples.
Address CascadeCustom DialogDevEco Studio
0 likes · 14 min read

The article discusses common Vue component communication patterns such as props‑emit, event buses, and ref usage, then introduces a colleague's provide‑inject plus ref approach that simplifies cross‑component interactions while highlighting its trade‑offs regarding Vue's one‑way data flow.
Provide/InjectRefcomponent communication
0 likes · 5 min read

This article introduces a jQuery‑style functional programming approach for mini‑program development, compares it with traditional Class components and React Hooks, demonstrates a simple input‑popup component with code examples, and explains how the method simplifies component communication and maintenance.
component communicationfrontendfunctional components
0 likes · 10 min read


WecTeamApr 2, 2020 · Frontend Development
This article explains how to keep WeChat mini‑programs fast and small by wisely managing the Page data object, using customData or pureData, choosing proper component communication methods, limiting SASS nesting, and handling templates, imports, and main‑package resources.
SassWeChat Mini-Programcomponent communication
0 likes · 15 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

This article explains Vue’s provide/inject API, how it enables ancestor components to share data with any descendant, compares it to Vuex for global state, shows practical code examples, discusses limitations and best‑practice guidelines, and demonstrates its use in component libraries like Element UI.
Frontend DevelopmentProvide/InjectVue
0 likes · 8 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.
Frontend DevelopmentPropsVue.js
0 likes · 12 min read

This article explains the internal mechanism of Vuex by analyzing how state and getter values are injected into Vue components, how they stay reactive through Vue's data system, and how a central event bus can be used for component communication, providing code examples and source‑code analysis.
StateVuexcomponent communication
0 likes · 9 min read

The article explains how Objective‑C Categories can implement a low‑overhead, type‑safe communication layer between iOS components, compares alternative patterns like DI, SPI and NotificationCenter, presents performance data, and proposes two Category‑based schemes with tooling to detect method‑name conflicts and ensure maintainable modular architecture.
CategoryLinkMapcomponent communication
0 likes · 31 min read

This article walks through building an identical ToDo application with React and Vue, comparing their project structures, data mutation mechanisms, component communication, event handling, and code examples, helping developers understand the practical differences between the two popular frontend frameworks.
ReactState ManagementTodo App
0 likes · 12 min read

This article introduces a lightweight event notification framework for Android, explaining its design, core interfaces, event manager implementation, usage examples with login/logout scenarios, lifecycle considerations, duplicate event checks, and compares it to traditional observer patterns.
AndroidEvent BusKotlin
0 likes · 10 min read

This article explains React's lifecycle phases, various ways components can communicate—including parent‑child calls and Flux‑based pub/sub—and demonstrates practical implementations such as infinite scrolling and comment updates, helping developers build robust front‑end applications.
FluxLifecycleReact
0 likes · 9 min read

This article introduces the Wepy framework for building WeChat mini‑programs, covering its architecture, demo projects, quick start commands, coding conventions, component communication, data binding, NPM integration, and performance optimizations to help developers create modular, ES6‑based mobile applications efficiently.
component communicationdata bindingmobile development
0 likes · 11 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
