https://marketplace.visualstudio.com/items?itemName=TimonVS.ReactSnippetsStandard
Snippets
Below is a list of all available snippets and the triggers of each one. The ⇥ means the TAB key.
<h1>Flutter in DartPad live app</h1> | |
<div> | |
<canvas id="canvas" width="300" height="300"></canvas> | |
</div> |
https://marketplace.visualstudio.com/items?itemName=TimonVS.ReactSnippetsStandard
Snippets
Below is a list of all available snippets and the triggers of each one. The ⇥ means the TAB key.
ul.tree, ul.tree ul { | |
list-style: none; | |
margin: 0; | |
padding: 0; | |
} | |
ul.tree ul { | |
margin-left: 10px; | |
} | |
ul.tree li { | |
margin: 0; |
const promise = new Promise( | |
(resolve, reject) => { | |
// do a thing, possibly async, then… | |
if (/* everything turned out fine */) { | |
resolve("Stuff worked!"); | |
} | |
else { | |
reject(Error("It broke")); | |
} | |
} |