ReactJS is a declarative, efficient, and flexible JavaScript library for building reusable UI components and most of us are a big fan of it.
Code Snippets makes our workflow simple and less time-consuming. Let us follow a few steps to be on and going:
STEP - 1
Install ES7 React Snippets in VS Code
If you want to download externally:
STEP - 2
How does It work?
Supported Languages
[ File Extensions ]
JavaScript (.js)
JavaScript React (.jsx)
TypeScript (.ts)
TypeScript React (.tsx)
Some Mostly Used Triggers
- rfc -> react functional component
- rfce -> react functional export component
- rafc -> react arrow function component
- rafce -> react arrow function export component
- rmc -> react function memo component
Other Important Triggers
imr -> import React from 'react'
imrd -> import ReactDOM from 'react-dom'
imrc -> import React, { Component } from 'react'
imrse -> import React, { useState, useEffect } from 'react'
imrpc → import React, { PureComponent } from 'react'