apptools-lab / AppWorks

🐻 基于 VS Code 插件的前端研发工具集,站点国内镜像:https://apptools.gitee.io

Home Page:https://appworks.site/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Generator插件实现可生成多种jsx/tsx模板,可自定义

Hedgehog-03 opened this issue · comments

问题描述/Problem Description

React Generator 插件只能生成一种特定的 jsx/tsx 模板,也就是普通的 Function Component,不能生成 Arrow Function Component.

建议的方案/Proposal

提供一个扩展设置入口API,使得用户可以自定义生成的 jsx/tsx 模板。

备选的方案/Alternatives

或是提供一个扩展设置入口API,用户可以选择生成 Function Component 或 Arrow Function Component,或古早项目的 Class Component.

附加信息/Other Information

辛苦AppWorks开发团队