towry / n

Lots of notes here, check out the issues.

Home Page:http://git.io/vEsyU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

小程序技术栈选择

towry opened this issue · comments

编译框架使用 Tarojs 和 React 语法的方式,选择 React 语法是因为一些库的支持非常好,同时使用函数式组件 + Hooks 的方式开发,解决了很多问题。

表单验证可以使用:yup + react-hook-form。我曾给 react-hook-form 提交了一个 bugfix 以便其支持 tarojs。

状态管理可以使用:react-redux + readux-act + redux-localstorage + redux-localstorage-filter,当然其他 react 社区里的状态管理也可以使用。

UI 库我选择了 vant-weapp,同时搭配 linaria 做 css-in-js 。

关键词:Tarojs + 表单验证