Next.js/React/Storybook Commands
Create components, stories and pages with commands.
Installation
- install the extension
- open command palette (ctrl + shift + p) or (cmd + shift + p)
- type (create a component in src directory).
- give file a name with extension.
Usage
React Components Commands
create a components in src directory.
- This command will create component directory inside src directory and then append file in it.
create a components in root
- This command will create component directory in root and then append file in it.
Next.js Pages Commands
create pages in src directory.
- This command will create pages directory inside src directory and then append file in it.
create a pages in root.
- This command will create pages directory inside root and then append file into it.
Storybook Components Commands
create a story in src directory.
- This command will create stories directory inside src directory and the append story in it.
create a story in root.
- This command will create a stories directory and then append story file in it.
| |