UNPKG

scrabble-solver

Version:

Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Crossplay, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.

12 lines (9 loc) 205 B
import { useRef } from 'react'; interface Latest<T> { readonly current: T; } export const useLatest = <T>(value: T): Latest<T> => { const ref = useRef(value); ref.current = value; return ref; };