js-lite-snnppet README
collect my snippets. since others doesn't fit well.
Features
short |
content |
imp |
imports module |
imn |
imports entire module |
imd |
imports with destruct |
edf |
export default |
fn |
declare named function |
afn |
declare async named function |
efn |
export function |
edf |
export default |
req |
require('') |
mde |
module.exports |
fore |
forEach |
map |
map |
fof |
for of |
con |
const |
coo |
const with destruct |
ret |
return |
sti |
setInterval |
sto |
setTimeout |
rtp |
new promise |
uss |
useState |
use |
useEffect |
imr |
import React |
rcc |
create react class |
rcf |
create react function |
Release Notes
0.0.1
just a new one!
0.1.0
- fixed .jsx support
- add ts(.ts/.tsx) support
- add some snippets
- remove some useless snippets
0.2.0
- fixed fn eg. add name props
- refactor rcf/rcc ts/tsx, type -> interface
| |