Download and install using https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/releases
Uninstall using wsl --unregister fedoraremix
Download and install using https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/releases
Uninstall using wsl --unregister fedoraremix
print("Clap along if you feel like that's what you wanna do") |
call plug#begin() | |
Plug 'theHamsta/nvim-treesitter', {'branch': 'ecma-auto-comment', 'do': ':TSUpdate'} | |
call plug#end() | |
set fillchars=eob:\ , | |
set shm+=Ic | |
set noswapfile | |
set lazyredraw | |
set modelines=0 | |
set number relativenumber |
// eslint-disable-next-line @typescript-eslint/no-explicit-any | |
export function debounce<F extends (...arguments_: any) => any>( | |
function_: F, | |
wait = 200 | |
): F { | |
let timeoutID: number; | |
return function (this: unknown, ...arguments_: Parameters<F>) { | |
clearTimeout(timeoutID); |
import type { ReactNode } from 'react'; | |
import { useEffect, useRef } from 'react'; | |
import ReactDOM from 'react-dom'; | |
interface Props { | |
rootId: string; | |
children: ReactNode; | |
} | |
export const Portal = ({ rootId, children }: Immutable<Props>) => { |
import React, { useCallback, useState } from 'react' | |
import { useForm } from 'react-hook-form' | |
import useSignal from 'utils/hooks/useSignal' | |
import useAsync, { AsyncState } from 'utils/hooks/useAsync' | |
const UpdateUserForm = () => { | |
const signal = useSignal() | |
const { getValues, /* ... */ reset: resetForm } = useForm<FormData>({ |
interface Props { | |
value?: string; | |
onChange?: (value: string) => void; | |
} | |
export function OutboundSelect<T>({ | |
value: externalValue, | |
onChange: externalOnChange = noop, | |
}: Props) { | |
const [value, onChange, isInternalValueUsed] = useAutoControlled( |
This hook is probably illegal to use. There is a reason why something like this doesn't ship with mobx-react-lite. (See something similar)
const somestate = useObservables(() =>
store.getSomeState()
)
const [statex, statey] = useObservables(() => [store.statex, statey])
import { useState } from "react"; | |
import ky from "ky"; | |
import cheerio from "cheerio"; | |
function App() { | |
const [url, setUrl] = useState(""); | |
const [title, setTitle] = useState(""); | |
const [faviconUrl, setFaviconUrl] = useState(""); | |
const handleSubmit = async () => { |
import type { MutableRefObject } from 'react'; | |
type References<T extends HTMLElement = HTMLElement> = | |
| MutableRefObject<unknown> | |
| ((element: T | null) => void) | |
| undefined | |
| null; | |
/** | |
* Utility function that let's you assign multiple references to a 'ref' prop |