Skip to content

Instantly share code, notes, and snippets.

View jmaicaaan's full-sized avatar

JM Santos jmaicaaan

  • Philippines
View GitHub Profile
"Named function": {
"prefix": "js#function",
"body": [
"function $1(${2:params}) {",
" $3",
"}"
],
"description": "Create a named function"
}
"Arrow function": {
"prefix": "ts#arrow-function",
"body": [
"export type $1Params = {};",
"const $1 = (params: $1Params) => {",
" $2",
"};"
],
"description": "Create arrow function with typings"
}
"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"
}
"Arrow function": {
"prefix": "js#arrow-function",
"body": [
"const $1 = (${2:params}) => {",
" $3",
"};"
],
"description": "Create an arrow function"
}
"Log output to the console": {
"prefix": "clog",
"body": [
"console.log('$1', $1);"
],
"description": "Log output to the console"
}
{
"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",
{
"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"
import React from 'react';
export const App = () => {
const {
data: data00,
error: error00,
execute: executeNext00AsyncCall,
} = executeNext00AsyncCall();
const {
import React from 'react';
export const App = () => {
const {
execute: executeNext00AsyncCall,
} = executeNext00AsyncCall();
const {
execute: executeNext01AsyncCall(),
} = useNext01ApiCall();
import React from 'react';
export const App = () => {
const {
execute: executeNext00AsyncCall,
} = executeNext00AsyncCall();
const {
execute: executeNext01AsyncCall(),
} = useNext01ApiCall();