Note
Allman brace style approach is used consistently in all snippets.
A comprehensive collection of handy React snippets for VSCode and WebStorm to speed up component creation and improve productivity.
- ✅ TypeScript Only
- ✅ React Client Components
- ✅ React Server Components
- ✅ Components with Props
- ✅ Reusable Action Handlers
Includes the following snippet abbreviations:
rcc— React Client Componentrccp— React Client Component with Propsrsc— React Server Componentrscp— React Server Component with Propsrah— React Action Handler
➡️ See full VSCode snippet list
Includes the following snippet abbreviations:
rcc— React Client Componentrccp— React Client Component with Propsrsc— React Server Componentrscp— React Server Component with Propsrah— React Action Handler
➡️ See full WebStorm snippet list
- Open Command Palette →
Snippets: Configure Snippets - Choose
New Global Snippets fileor language-specific fortypescriptreact - Paste the content of
vscode.md
- Go to Settings →
Editor→Live Templates - Create a new template group or use an existing one
- Paste the content of
webstorm.md - Set provided
TM_FILENAME_BASEvariable for dynamic naming
react-snippets/
├── README.md # You are here 👈
├── vscode.md # VSCode-specific snippet definitions
└── webstorm.md # WebStorm-specific snippet definitions
Use these snippets as a foundation and feel free to customize them to fit your coding style or team conventions.
MIT © DevMaffi