Why You Shouldn't Use Index as Key in React
Using array index as a React key can lead to UI bugs and performance issues. Learn why it happens and what to do instead.
BLOG / TECHNOLOGY
18–34 of 76 articles
Using array index as a React key can lead to UI bugs and performance issues. Learn why it happens and what to do instead.
Personalize your GitHub profile by creating a username-matching repo with a customized README. Here's how to get started!
__init__.py files are more than just placeholders—they define packages, control imports, and can even initialize modules in Python projects.
Master JavaScript's event loop with a deep dive into the execution order of async/await, Promises, and setTimeout.
Keep your project .gitignore clean by configuring a global ignore file for system and editor-specific clutter.
From high-DPI canvas scaling to hover/click interaction, this post explains how to implement a timeline UI using HTML5 Canvas.
Behind the scenes of an interactive coronavirus map — from heatmaps to categorized visuals, a story of data visualization and design evolution.
A full walkthrough on creating a custom dot map using QGIS, Canvas, and JavaScript — from data extraction to pixel rendering.
Use web-view to embed Mapbox GL JS and unlock rich visual features like 3D, heatmaps, and clustering within your WeChat Mini Program.
WeChat Mini Programs don't officially support third-party maps, but with a clever web-view workaround, this post demonstrates how to embed interactive Mapbox maps—covering enterprise requirements, domain verification, and postMessage communication.
Learn how to pad numbers with leading zeros using a simple one-liner in JavaScript, and watch out for edge cases with overly long numbers.
From manual deployment to full automation, this post walks through configuring Travis CI to run builds and deploy code to remote servers over SSH.
A hands-on guide by Mofei on maintaining high code quality using Travis CI, Tape, nyc, and codecov.io, complete with real-world Node.js examples.
A complete guide by Mofei on how to debug native Node.js C++ addons in VS Code using launch.json, breakpoints, and preLaunchTask settings.
A complete guide by Mofei on how to debug native Node.js C++ addons in VS Code using launch.json, breakpoints, and preLaunchTask settings.
mapv-Editor is a web-based geographic data editor built on the MapV engine, supporting multi-format data import, customizable base maps, and intuitive layer configuration with a near-native user experience.
This post explores the process of simulating a crossroad with zebra crossings using JavaScript Canvas, covering normalized coordinate processing, road sorting, intersection computation, and canvas transformation techniques.