Choosing a WeChat Mini Program stack: native components, kbone, or JSX with Taro?

April 13, 2025

I wanted to build a WeChat Mini Program for discovering nearby activities. One card on the home page would do to start with: show who posted the event, when they posted it, and the number of comments. I already knew how to write a card like that in JSX, using tags inside JavaScript to describe the interface. In choosing a framework, one question helped more than asking which ones support JSX: did I have an existing web page to port, or did I simply want to keep the way I write web pages?

What I needWhat I would try firstHow to test it with one card
Target WeChat alone and use WeChat-style controls directlyA native Mini Program with WeUI, which supplies components such as search bars and dialogs.1Lay out the card in WeChat’s WXML template language, register a dialog in the page configuration’s usingComponents, and open it from the card.
Bring existing web components over along with their codekbone emulates common browser interfaces inside a Mini Program, so existing Preact components can keep using div and button.2Try tapping through to a details page first. Even the counter in the official template can be shared, but navigation calls wx.navigateTo on WeChat and assigns location.href on the web.
Write new pages using familiar React component patternsTaro lets you compose its View, Text, and Image in JSX and build the same page for WeChat and the web.3Pass a title and comment count to the card, then open the details and scroll the list in WeChat DevTools. To use the lighter Preact, select preact in both the Taro compiler and Babel configurations.

I also looked at uni-app that afternoon. A Vue team targeting both the web and Mini Programs could keep its familiar component conventions. In a 2019 account of using Taro, Songkeys suggested “再看对多端编译的需求、再看技术栈符不符合团队技能” — look at the need to compile for multiple platforms, then at whether the stack matches the team’s skills. For my Mini Program, it was my experience writing React components that I wanted to keep. I still had to write the first activity card from scratch, so Taro was a good fit.45

The career-partner prototype ended up using Taro 4.0.10, React 18, and Webpack 5. Its home page used Taro components to list mock posts with avatars and comment counts. I tried installing Taro UI as well and ran into a React type-version conflict just installing it. For another small prototype like this, I would finish one card with basic components first and decide whether to bring in an entire component library when the page needed a particular control. The dependency error and home-page implementation at the time (in English)

References

Footnotes

  1. WeChat Mini Program team. (n.d.). WeUI 组件库、快速上手. WeChat Open Docs. Component library overview, Prerequisites, importing components, and a dialog example. ↩

  2. WeChat Mini Program team. (n.d.). Kbone 解决方案. WeChat Open Docs, Introduction. wechat-miniprogram. (n.d.). kbone-template-preact. GitHub, One syntax across platforms. ↩

  3. NervJS. (n.d.). Taro、Preact. Project overview, Taro documentation, Configuration example in the 4.x docs. ↩

  4. DCloud. (n.d.). 什么是 uni-app. uni-app documentation. Framework and deployment platforms. ↩

  5. Songkeys. (2019, March 10). 使用 Taro 开发微信小程序的实践 + 踩坑合集 [Blog post]. Songkeys' Blog. Third-party framework overview, first paragraph after the list. ↩

© 2025 borui. All rights reserved. This content may be freely reproduced, displayed, modified, or distributed with proper attribution to borui and a link to the article: borui (2025-04-13). Choosing a WeChat Mini Program stack: native components, kbone, or JSX with Taro?. https://caiborui.com/blog/2025-04-13-zh-wechat-mini-program-framework-selection-entrans

@misc{borui2025-920bd661,
  author = {borui},
  title = {{Choosing a WeChat Mini Program stack: native components, kbone, or JSX with Taro?}},
  year = {2025},
  publisher = {borui's blog},
  url = {https://caiborui.com/blog/2025-04-13-zh-wechat-mini-program-framework-selection-entrans}
}