The last Javascript 2017 & React snippets package you will ever need.
Since package control is still pending to accept this package, you'll have to install manually.
git clone https://github.com/AlexKvazos/javascript-next-snippets ~/Library/Application Support/Sublime Text 3/Packages/javascript-next-snippets
Trigger | Snippet |
---|---|
log→ | console.log() |
info→ | console.info() |
warn→ | console.warn() |
error→ | console.error() |
table→ | console.table() |
alert→ | alert() |
confirm→ | confirm() |
prompt→ | prompt() |
setTimeout→ | setTimeout() |
setInterval→ | setInterval() |
addEventListener→ | addEventListener() |
arr→ | let array = [] |
obj→ | let object = {} |
tern→ | condition ? () : () |
Trigger | Snippet |
---|---|
_rcc→ | React Class Component |
_rfc→ | React Functional Component |
_cwm→ | componentWillMount() |
_cwu→ | componentWillUpdate() |
_cwun→ | componentWillUnmount() |
_cdm→ | componentDidMount() |
_cdu→ | componentDidUpdate() |
_cwr→ | componentWillReceiveProps() |
_scu→ | shouldComponentUpdate() |
setState→ | setState() |