A collection of useful VSCode snippets for React TypeScript development with Material-UI integration. More snippets coming in the future.
- Open VSCode
- Press
Ctrl + Shift + P(Windows/Linux) orCmd + Shift + P(Mac) and type "Snippets: Configure User Snippets", then select:typescript.jsonfor TypeScript snippetstypescriptreact.jsonfor React TypeScript snippets
- Select TypeScript React (.tsx) or TypeScript (.ts)
- Copy the snippets from this repository to your snippets file
| Prefix | Description |
|---|---|
muiTypography |
Create a MUI Typography component |
flexRow |
Create a MUI Box with row flex layout |
flexColumn |
Create a MUI Box with column flex layout |
newComponent |
Create a new React component with TypeScript |
customHook |
Create a custom React hook template |
createService |
Create an API service method with types |
reduxAsyncThunk |
Create a Redux async thunk |
reduxSlice |
Create a Redux slice |