gobystrok-vscode-snippets-reactjs
Snippets from VSCode | ReactJS
This extension contains code snippets for [Reactjs][react].
Installation
To install you go to the side menu and click on the extension icon, and search for GoBystrok ReactJS and press to install.
Supported languages (file extensions)
- JavaScript (.js)
- TypeScript (.ts)
- JavaScript React (.jsx)
- TypeScript React (.tsx)
Snippets
List of current passages. The ** ⇥ ** stands for the TAB key.
Trigger |
Content |
init→ |
create class component |
initRedux→ |
create class component with redux |
cons→ |
create construct |
willMount→ |
create componentWillMount method |
didMount→ |
create componentDidMount method |
willReceive→ |
create componentWillReceiveProps method |
shouldUpdate→ |
create shouldComponentUpdate method |
willUpdate→ |
create componentWillUpdate method |
didUpdate→ |
create componentDidUpdate method |
willUnmount→ |
create componentWillUnmount method |
styled→ |
create export and import const styled |
setState→ |
create setState object method |
setStateFunc→ |
create setState function method |
axiosInterceptors→ |
create axios interceptors |
axios→ |
import and create skeleton |
axiosConsole→ |
create methods console from error/success |
| |