Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Create react componentNew to Visual Studio Code? Get it now.

Create react component

mike-hendriks

|
22 installs
| (0) | Free
Generates files for new React component, including scss module, fragments and types
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Github

Create React component

Generate React components:

  • src
    • /components
      • /index.ts (All all files to main components index file)
      • /ComponentName
        • ComponentName.module.scss
        • ComponentName.tsx
        • ComponentName.types.ts
        • ComponentName.fragment.ts

Features

Right click in the file editor or on a file in the explorer and click Create React component to create a new React component with all the files mentioned above. OR press F3 to create a component in your components folder with your given component name!

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft