snippet todo "// TODO" // TODO $0 endsnippet snippet if "if ( ... ) { ... }" if ($1) { $0 } endsnippet snippet cl "console.log( ... )" console.log($0); endsnippet snippet .fe "...forEach( ... );" i .forEach(($1) => { $0 }); endsnippet snippet .ae "...addEventListener( ... );" i .addEventListener('$1', ($2) => { $0 }); endsnippet snippet st "setTimeout( ... )" setTimeout(() => {$0 }, ${1:1000}); endsnippet snippet dq "document.querySelector( ... )" document.querySelector($0) endsnippet snippet dqa "document.querySelectorAll( ... )" document.querySelectorAll($0) endsnippet snippet cdq "const ... = document.querySelector( ... )" const $1 = document.querySelector($0); endsnippet snippet cdqa "const ... = document.querySelectorAll( ... )" const $1 = document.querySelectorAll($0); endsnippet snippet jsx "import React ..." import React from "react"; class $1 extends React.Component { constructor(props) { super(props); this.state = { } } render() { return ( <${2:div} className={this.props.className}> $0 ); } } export default () => ( ); endsnippet snippet jsxs "import React ... styled" import React from "react"; import styled from "styled-components"; const S = {}; class $1 extends React.Component { constructor(props) { super(props); this.state = { } } render() { return ( <${2:div} className={this.props.className}> $0 ); } } S.$1 = styled($1)\` \`; export default () => ( ); endsnippet snippet jsc "class ... extends React.Component" class $1 extends React.Component \{ ${2: constructor(props) \{ super(props); this.state = \{ \} \}} render() \{ return ( <${3:div}${4: className=\{this.props.className\}}> $0 ); } } endsnippet snippet th "this.handle..." this.handle${1:Click} = this.handle$1.bind(this); endsnippet snippet tb "this ... = ... .bind(this);" this.$1 = this.$1.bind(this); endsnippet snippet wprb import { registerBlockType } from '@wordpress/blocks'; const blockStyle = { color: red, backgroundColor: pink, }; registerBlockType( '${1:namespace}/${2:block-name}', { title: '$3', icon: '${4:universal-access-alt}', category: '${5:layout}', example: {}, edit( { className } ) { return
Hello World, step 1 (from the editor).
; }, save() { return
Hello World, step 1 (from the frontend).
; }, } ); endsnippet