typeblast
Groups
Download
Back to Groups
Development
Developer Shortcuts
Code boilerplate.
OL
ollieb
0
likes
10
snippets
Subscribe
Like
Try it here
Clear
Snippet
;useState — useState
;drun — Docker
;comp — Component
;afunc — Async
;func — Function
;log — Log
;useEffect — useEffect
;fetch — Fetch
;shebang — Shebang
;gitco — Git
;test — Example: three fill-ins
Loading snippet…
Try a three-field example
Your typing stays in this tab. Nothing is saved or sent.
Snippets (10)
;useState
Try it ↗
useState
const [v,setV] = useState();
;drun
Try it ↗
Docker
docker run -d --name x -p :
;comp
Try it ↗
Component
export function C() { return <div/>; }
;afunc
Try it ↗
Async
const fn = async () => { try {} catch(e) {} };
;func
Try it ↗
Function
const fn = () => {};
;log
Try it ↗
Log
console.log();
;useEffect
Try it ↗
useEffect
useEffect(() => { return () => {}; }, []);
;fetch
Try it ↗
Fetch
const r = await fetch(url);
;shebang
Try it ↗
Shebang
#!/usr/bin/env bash
;gitco
Try it ↗
Git
git add -A && git commit -m ""