SNIPPETS (SHORTCUTS) ;
Sat May 29 2021 15:17:52 GMT+0000 (Coordinated Universal Time)
Saved by
@latifa_amaireh
SNIPPETS (SHORTCUTS) ;
exp→ export default moduleName
nfn→ const functionName = (params) => { }
fre→ arrayName.forEach(element => { }
imrc→ import React, { Component } from 'react'
/****************************************************************/
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'
/****************************************************************/
sst→ this.setState({ })
ssf→ this.setState((state, props) => return { })
/****************************************************************/
props→ this.props.propName
state→ this.state.stateName
/****************************************************************/
clg→ console.log(object)
ccl→ console.clear()
/****************************************************************/
rcc
import React, { Component } from 'react'
export default class FileName extends Component {
render() {
return <div>$2</div>
}
}
/*******************************************************************/
rce
import React, { Component } from 'react'
export class FileName extends Component {
render() {
return <div>$2</div>
}
}
export default $1
content_copyCOPY
Comments