MaoDou Frontend Team
Author

MaoDou Frontend Team

Open-source, innovative, collaborative, win‑win – sharing frontend tech and shaping its future.

38
Articles
0
Likes
35
Views
0
Comments
Recent Articles

Latest from MaoDou Frontend Team

38 recent articles
MaoDou Frontend Team
MaoDou Frontend Team
Jul 31, 2018 · Frontend Development

Is React setState Synchronous or Asynchronous? A Practical Guide

This article explains when React's setState behaves synchronously or asynchronously, how batch updates are merged into a single render, and the proper way to retrieve the updated state using the callback parameter, illustrated with clear diagrams and code examples.

FrontendJavaScriptReact
0 likes · 3 min read
Is React setState Synchronous or Asynchronous? A Practical Guide
MaoDou Frontend Team
MaoDou Frontend Team
Jul 14, 2018 · Frontend Development

Mastering JavaScript Event Loop: Microtasks, Macrotasks, and Async Tricks

This article thoroughly explains JavaScript's single‑threaded nature and Event Loop, detailing how synchronous and asynchronous tasks are queued as macro‑tasks or micro‑tasks, and demonstrates their behavior with code examples, diagrams, and analysis of setTimeout, setInterval, Promise and process.nextTick.

event-loopmacrotasksmicrotasks
0 likes · 11 min read
Mastering JavaScript Event Loop: Microtasks, Macrotasks, and Async Tricks
MaoDou Frontend Team
MaoDou Frontend Team
Jun 26, 2018 · Frontend Development

Getting Started with WePY: Build WeChat Mini‑Programs Faster

This guide introduces the WePY framework, showing how to install the CLI, create a demo project, configure the build, understand .wpy file structure, and leverage components, data binding, and event communication to develop WeChat mini‑programs efficiently.

CLIComponent ArchitectureVue-like
0 likes · 9 min read
Getting Started with WePY: Build WeChat Mini‑Programs Faster