imr → |
import React from 'react' |
imrd → |
import ReactDOM from 'react-dom' |
imrc → |
import React, { Component } from 'react' |
imrcp → |
import React, { Component } from 'react' & import PropTypes from 'prop-types' |
imrpc → |
import React, { PureComponent } from 'react' |
imrpcp → |
import React, { PureComponent } from 'react' & import PropTypes from 'prop-types' |
imrm → |
import React, { memo } from 'react' |
imrmp → |
import React, { memo } from 'react' & import PropTypes from 'prop-types' |
imrs → |
import React, { useState } from 'react' |
imrse → |
import React, { useState, useEffect } from 'react' |
impt → |
import PropTypes from 'prop-types' |
imrr → |
import { BrowserRouter as Router, Route, NavLink} from 'react-router-dom' |
imbr → |
import { BrowserRouter as Router} from 'react-router-dom' |
imbrc → |
import { Route, Switch, NavLink, Link } from react-router-dom' |
imbrr → |
import { Route } from 'react-router-dom' |
imbrs → |
import { Switch } from 'react-router-dom' |
imbrl → |
import { Link } from 'react-router-dom' |
imbrnl → |
import { NavLink } from 'react-router-dom' |
redux → |
import { connect } from 'react-redux' |
rconst → |
constructor(props) with this.state |
est → |
this.state = { } |
ren → |
render() { return( ) } |
sst → |
this.setState({ }) |
ssf → |
this.setState((state, props) => return { }) |
props → |
this.props.propName |
state → |
this.state.stateName |
rcontext → |
const ${1:contextName} = React.createContext() |
cref → |
this.${1:refName}Ref = React.createRef() |
fref → |
const ref = React.createRef() |
bnd → |
this.methodName = this.methodName.bind(this) |