Tagged articles
3 articles
Page 1 of 1
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
vivo Internet Technology
vivo Internet Technology
Sep 7, 2022 · Frontend Development

Design and Implementation of the Qingtian Micro‑Frontend Framework

The Qingtian framework redesigns VAPD’s monolithic front‑end by employing full‑screen iframes with shared component libraries, asynchronous loading, and synchronized routing and state engines, delivering instant sub‑app switching, complete isolation, and fast page loads while preserving micro‑frontend scalability.

Frontend ArchitectureMicro FrontendsWeb Performance
0 likes · 12 min read
Design and Implementation of the Qingtian Micro‑Frontend Framework
Full-Stack Trendsetter
Full-Stack Trendsetter
Oct 20, 2021 · Frontend Development

Why Vue Component data Must Be a Function, Not an Object

The article explains that while a Vue root instance can define its data as an object or a function, a component's data must be a function to avoid shared memory between instances, illustrating the issue with code examples and detailing Vue's option‑merge validation.

@DataComponentJavaScript
0 likes · 4 min read
Why Vue Component data Must Be a Function, Not an Object