Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.14 KB

File metadata and controls

45 lines (33 loc) · 1.14 KB

create-func-com

中文说明

a vscode extension about react component generater
vscode Marketplace

  1. component(function component) templates can be generated
  2. page templates can be generated

Install

  • click the link of Marketplace to install
  • or in the vscode's EXTENSIONS menu to search 'create-func-com' and install

Use

In the vscode explorer, select the root folder where the component or page needs to be created, and select the "Generate component(react)" or "Generate page(react)" option from the right-click menu.

Generated code structure:

1. component

YourComponentName
└───assets
│     index.tsx
│     styles.css

2. page

your-page-name
└───page
|     └─index
|         └─components
│             └─App
│               └─assets
│               | index.tsx
│               | styles.css
│
│   index.html
│   index.tsx