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

Create React Component

tkcodesstuff

|
20 installs
| (0) | Free
Create a React component
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Create React Component

1. Right click on a folder or a file

If you right-click on a file, you have the option to create your component on the same level as that file. If you right-click on a folder, you will have the options to create your component on the same level as that folder, as well as in it.

image 1

2. Input options

You will be prompted for the following things:

  1. Component name (will be casted to pascal case)
  2. Whether to use TypeScript or not
  3. Whether to use SCSS or not
  4. Whether to use a CSS module or not

image 2

3. Folder and files will be created

The created tsx or jsx file will contain some boilerplate to help you get started.

image 3

Happy coding :)

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