This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Named function": { | |
"prefix": "js#function", | |
"body": [ | |
"function $1(${2:params}) {", | |
" $3", | |
"}" | |
], | |
"description": "Create a named function" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Arrow function": { | |
"prefix": "ts#arrow-function", | |
"body": [ | |
"export type $1Params = {};", | |
"const $1 = (params: $1Params) => {", | |
" $2", | |
"};" | |
], | |
"description": "Create arrow function with typings" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Arrow function by filename": { | |
"prefix": "js#arrow-function-use-filename", | |
"body": [ | |
"const ${1:${TM_FILENAME_BASE}} = (${2:params}) => {", | |
" $3", | |
"};" | |
], | |
"description": "Create an arrow function with filename as the default function name" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Arrow function": { | |
"prefix": "js#arrow-function", | |
"body": [ | |
"const $1 = (${2:params}) => {", | |
" $3", | |
"};" | |
], | |
"description": "Create an arrow function" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Log output to the console": { | |
"prefix": "clog", | |
"body": [ | |
"console.log('$1', $1);" | |
], | |
"description": "Log output to the console" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my-todo-list", | |
"version": "1.0.0", | |
"description": "This is todo list project", | |
"main": "index.js", | |
"scripts": { | |
"start": "node ." | |
}, | |
"dependencies": { | |
"formik": "^1.5.0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my-todo-list", | |
"version": "1.0.0", | |
"description": "This is todo list project", | |
"main": "index.js", | |
"scripts": { | |
"start": "node ." | |
}, | |
"dependencies": { | |
"formik": "^1.5.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
export const App = () => { | |
const { | |
data: data00, | |
error: error00, | |
execute: executeNext00AsyncCall, | |
} = executeNext00AsyncCall(); | |
const { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
export const App = () => { | |
const { | |
execute: executeNext00AsyncCall, | |
} = executeNext00AsyncCall(); | |
const { | |
execute: executeNext01AsyncCall(), | |
} = useNext01ApiCall(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
export const App = () => { | |
const { | |
execute: executeNext00AsyncCall, | |
} = executeNext00AsyncCall(); | |
const { | |
execute: executeNext01AsyncCall(), | |
} = useNext01ApiCall(); |