# 我的 React 技术栈

# 0x00 前言

16 年 ~ 20 年先后折腾过

  1. vue 2
  2. angular 4
  3. react class component
  4. angular 4
  5. react hooks
  6. vue 3

综合考虑了

  • 开发工具链
  • 社区生态
  • 跨端方案
  • 与 Typescript 的结合程度

最后形成了较为稳定的 react 技术栈

# 0x01 桌面端

https://github.com/twocucao/react-starter

  • react hooks
  • typescript
  • mobx
  • css tailwindcss
  • format with prettier
  • lint with eslint

# 0x02 移动端

https://github.com/twocucao/react-starter

# 0x03 小程序端

https://github.com/twocucao/react-starter-remaxjs

https://github.com/twocucao/react-starter-taro

  • All Feature Supported By RemaxJS
  • Type Hint - Typescript for better multi-user developing experience
  • style management - tailwind like utils which called minimal.css
  • store management - mobx-react-lite
  • components management - mostly functional components plus react hooks
  • auto lint && format by eslint && prettier && husky
  • optimized only for wechat mini-app

# 0x04 RN

无完整上线经历,不做评论

# 0x05 桌面 electron

热更新速度很快


ChangeLog:

  • 2020-12-01 重修文字