Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>React Component KickstartNew to Visual Studio Code? Get it now.
React Component Kickstart

React Component Kickstart

Rana Intizar Ali

|
28 installs
| (0) | Free
It generates the basic file structure of react component
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

React Component Kickstart

Overview

The React Component Kickstart is a Visual Studio Code extension that streamlines the process of creating the basic file structure for React components in your workspace.

Preview

Example GIF

Features

  • Quickly generate the file structure for React components.
  • Simplify the creation of component files, including JavaScript/TypeScript, CSS, and SCSS stylesheets.

Commands

  • Generate Component Files: Open the command palette and run "Generate Component Files" to create the basic file structure for a React component.

Usage

  1. Open Visual Studio Code.
  2. Open the desired workspace folder.
  3. Open the command palette (Ctrl+Shift+P or Cmd+Shift+P on macOS) or Right-click on a folder in the Explorer.
Choose Component Path
4. Run "Generate Component Files." 5. Follow the prompts to specify the components path, folder name, component name, component extension and stylesheet type.

Component Path:

Choose Component Path

Folder Name:

Choose Folder Name

Component Name:

Choose Component Name

Component Extension:

Choose Component Extension

Stylesheet Type:

Choose Stylesheet Type


  1. Once you've selected the component extension and stylesheet type, preferences will be saved for this workspace. You won't have to select them again for future component creations in this workspace.

  2. Alternatively, use the shortcut keys (Ctrl+Alt+C or Cmd+Alt+C on macOS)

Note: If no component extension is selected, the component extension will be set to .js. If no stylesheet type is selected, the default stylesheet type will be set to .css.

Examples

  1. Suppose you run the "Generate Component Files" command and provide the following inputs:
  • Components Path: src/components
  • Folder Name: button
  • Component Name: MyButton
  • Component Extension: tsx
  • Stylesheet Type: scss

The extension will create the following files:

  • src/components/button/MyButton.tsx
  • src/components/button/MyButton.module.scss
  • src/components/button/index.tsx
  1. Suppose you run the "Generate Component Files" command and provide the following inputs:
  • Components Path: src/components
  • Folder Name: header
  • Component Name: Header
  • Component Extension: jsx
  • Stylesheet Type: css

The extension will create the following files:

  • src/components/header/Header.jsx
  • src/components/header/Header.css
  • src/components/header/index.jsx
  1. Suppose you run the "Generate Component Files" command and provide the following inputs:
  • Components Path: ''
  • Folder Name: my-component
  • Component Name: MyComponent
  • Component Extension: tsx
  • Stylesheet Type: tailwind

The extension will create the following files:

  • my-compnent/MyComponent.tsx
  • my-compnent/index.tsx

Requirements

  • Visual Studio Code version 1.60.0 or higher.

Installation

  1. Open Visual Studio Code.
  2. Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X on macOS).
  3. Search for "React Component Kickstart."
  4. Click Install.

Release Notes

1.0.0

Initial release of the React Component Kickstart.

Known Issues

No known issues.

Contributing

Contributions are welcome! Please submit issues and pull requests on the GitHub repository.

License

This extension is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft