Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Frontend Development

16 min read

Is WebSocket Still the Best Choice for Real-Time Push? Compare with SSE and Polling

This article examines three server‑to‑client push methods—polling, WebSocket, and Server‑Sent Events (SSE)—detailing their mechanisms, browser compatibility, pros and cons, suitable scenarios, and provides step‑by‑step demos with Node.js/Express and plain HTML to help developers choose the most efficient solution for real‑time messaging.

8 min read

React Compiler Rewritten in Rust—Most of the Code Generated by Claude AI

The React team merged a massive PR that ports the React Compiler from TypeScript to Rust, adding over 123,000 lines, delivering roughly 3× overall speed and 10× pure transform speed, preserving the original architecture, passing 1,725 tests, supporting Babel, OXC and SWC integrations, and largely written with Claude AI, though it remains an early‑sharing experimental build.

19 min read

How Kuikly's TurboDisplay Achieves Instant Cross-Platform Page Loads

Tencent's Kuikly framework introduces TurboDisplay, a first-screen acceleration solution that caches rendered nodes and uses dual-thread parallel rendering to achieve instant page loads on repeat visits, reducing load times by 60-80% in production apps like QQ Games and Tencent Maps.

17 min read

Claude Design in Action: Prompt UI, One‑Click Handoff to Claude Code

This article walks through using Claude Design to generate a high‑fidelity WeChat bookkeeping mini‑program via conversational prompts, automatically apply a design system, iterate with Tweaks and inline comments, then hand off the resulting React‑style JSX bundle to Claude Code for uni‑app implementation, while highlighting token costs and common pitfalls.

14 min read

Why Slicing Beats Coding: Lessons from Recreating a Product Mockup with Claude, Codex, Cursor, and v0.app

The author rebuilt a visually complex app homepage using React, Next.js, Tailwind CSS and AI tools (Claude, Codex, Cursor, v0.app), discovering that while the AI can generate functional code, the real challenge lies in correctly slicing the design into background assets and DOM elements to preserve visual fidelity.

14 min read

Build Web Tools with Python Only: Introducing NiceGUI

This article introduces NiceGUI, a pure‑Python web UI framework that lets developers create fully functional, visually appealing web applications without writing any HTML, CSS, or JavaScript, covering its core concepts, quick‑start example, advanced features, component library, layout system, data‑visualisation integration, multi‑page support, suitable scenarios, and a comparison with traditional web development.

12 min read

Which React Global State Library Wins? Redux, Zustand, MobX, or Context (3‑Minute Guide)

This article compares Redux Toolkit, Zustand, MobX, and React Context for global state management, offering a decision matrix, concrete code examples, practical tips, and scenario‑based recommendations so developers can choose the most suitable solution for their project's size, complexity, and team dynamics.

9 min read

How KY Design-to-HTML Skill Turns a UI Screenshot into Precise HTML/CSS

The article introduces KY Design-to-HTML Skill, an AI skill for Codex and Claude that converts UI screenshots into precise HTML/CSS by following a six‑step workflow—structure recognition, asset classification, canvas adaptation, code generation, screenshot verification, and iterative correction—plus installation guidance and practical use cases.

7 min read

9 Practical JSX Tips to Write Cleaner React Code

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.

6 min read

How I Built a Mood‑Tracking Mini‑Program with Fuzzy Location, Backend Reverse Geocoding, and Manual Map Selection

This article details the step‑by‑step development of a WeChat mini‑program that adds location‑based check‑ins, covering fuzzy location retrieval, moving reverse‑geocoding to the backend for key protection, the failed attempt at precise GPS, and the final hybrid approach of fuzzy auto‑location combined with manual map point selection.