Oct
24
12 hours ago
open pull request

eps1lon wants to merge typescript-cheatsheets/react

eps1lon
eps1lon

docs: Improve the useRef docs

Enhanced type prompt for useRef

eps1lon
eps1lon
  // Technical-wise, this returns MutableRefObject<ReturnType<typeof setInterval> | null>
  const intervalRef = useRef<ReturnType<typeof setInterval> | null>(null);

No need for the number.

I wouldn't mention to what ReturnType resolves since that's not relevant here.

pull request

eps1lon merge to typescript-cheatsheets/react

eps1lon
eps1lon

docs: Improve the useRef docs

Enhanced type prompt for useRef

pull request

eps1lon merge to typescript-cheatsheets/react

eps1lon
eps1lon

docs: Improve the useRef docs

Enhanced type prompt for useRef

started
started time in 58 minutes ago
Previous