Skip to content

Instantly share code, notes, and snippets.

View alanhr's full-sized avatar
💭

Alan Gomes alanhr

💭
  • BFA
  • Brazil - Vila Velha
  • X @alanhr
View GitHub Profile
import { createWriteStream } from 'fs'
import { resolve } from 'path'
import fetch from 'node-fetch'
import playwright from 'playwright'
;(async () => {
const browser = await playwright['chromium'].launch({
})
const context = await browser.newContext({ acceptDownloads: true })
@alanhr
alanhr / hook-result.tsx
Last active August 10, 2022 12:50
Show crazy code
import { useEffect, useState } from 'react'
interface HookResultIdleState {
state: 'idle'
}
interface HookResultLoadingState {
state: 'loading'
}