AppWorks icon indicating copy to clipboard operation
AppWorks copied to clipboard

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

Open Hedgehog-03 opened this issue 1 year ago • 0 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开发团队

Hedgehog-03 avatar Mar 22 '23 03:03 Hedgehog-03