Build JD Mini‑Programs Quickly with Taro: A Step‑by‑Step Guide
This guide explains the background of JD mini‑programs, introduces the Taro multi‑platform framework, and provides detailed installation, project creation, build commands, debugging steps, and an example conversion to help developers efficiently create JD mini‑programs.
Background
JD mini‑programs have become a major trend in the internet ecosystem, offering merchants a unified platform across JD APP, JD Finance APP, and JD Mai APP. The JD mini‑program platform provides marketing, transaction, payment, membership, and logistics capabilities, allowing developers to build one codebase that runs on all three apps.
What is Taro
Taro, created by Aotu Lab, is a React‑syntax‑compatible multi‑platform development solution that officially supports JD mini‑programs. With Taro, a single codebase can be compiled to JD, WeChat, Baidu, Alipay, ByteDance, QQ mini‑programs, quick‑apps, H5, and React‑Native.
How to Develop JD Mini‑Programs with Taro
Join the JD Mini‑Program Platform
Visit the JD mini‑program official website, submit the required information, and complete the onboarding process to obtain an invitation code.
Development Steps
Install the Taro CLI globally: npm install -g @tarojs/cli Create a new project: taro init [projectName] Enter the project directory and build for JD mini‑programs using the documentation guidance: taro build --type jd [--watch] Debug the application with JD developer tools, which are provided after successful onboarding and invitation code receipt.
Taro Fully Supports JD Mini‑Programs
Taro has achieved 100% compatibility with JD mini‑program features, enabling developers to use the full range of JD capabilities without additional adaptation work.
Example Conversion
An open‑source multi‑platform project (Yanxuan) from the Taro GitHub repository was converted to both WeChat and JD mini‑programs, demonstrating identical visual results.
Future Plans
The Taro team plans to deepen JD mini‑program integration, expand ecosystem support, and provide a visual self‑service builder for rapid mini‑program creation. Partial material market support has already been validated.
Community and Support
Developers encountering issues can raise them on GitHub Issues or the Taro community, and contact [email protected] for assistance.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Aotu Lab
Aotu Lab, founded in October 2015, is a front-end engineering team serving multi-platform products. The articles in this public account are intended to share and discuss technology, reflecting only the personal views of Aotu Lab members and not the official stance of JD.com Technology.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
