Skip to content
This repository has been archived by the owner on Dec 25, 2021. It is now read-only.

HigorAlves/vscode-reactjs-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

30 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Complete React snippets to use in your workflow

This snippet is being created

A complete ReactJS and Native snippet to use.

Easy shortcuts to help and expedite your code development. To be more easy we put a check on the table with all snippets and were (native or JS) its work.

For React Native the snippets is after - like rc - rnc (rnc is for React Native)

Features

Snippet Description ReactJS Native
rc - rnc Create a stateful Component βœ” βœ”
rsc- rnsc Create a stateless Component βœ” βœ”
rfc - rnfc Create a functional Component βœ” βœ”
rfhc - rnfhc React Hooks Stateful Component βœ” βœ”
rrc - rnrc Create ReactJS Stateful Redux Component βœ” βœ”
rrsc - rnrsc Create ReactJS Stateless Redux Component βœ” βœ”
mapstatetoprops Create Redux method mapStateToProps βœ” βœ”
mapdispatchtoprops Create Redux method mapDispatchToProps βœ” βœ”
cdm componentDidMount() βœ” βœ”
scu shouldComponentUpdate() βœ” βœ”
cdu componentDidUpdate() βœ” βœ”
cwu componentWillUnmount() βœ” βœ”
cwu [DEPRECATED] componentWillUpdate() βœ” βœ”
cwm [DEPRECATED] componentWillMount() βœ” βœ”
cwrp [DEPRECATED] componentWillReceiveProps() βœ” βœ”

Add all snippets here

Requirements

Visual Studio Code: ^1.29.0

Features

  • Styled-Components
  • Redux
  • React Router
  • React Navigation
  • TypeScript Support

Release Notes