// <div> reference type const divRef = React.useRef<HTMLDivElement>(null); // <button> reference type const buttonRef = React.useRef<HTMLButtonElement>(null); // <br /> reference type const brRef = React.useRef<HTMLBRElement>(null); // <a> reference type const linkRef = React.useRef<HTMLLinkElement>(null);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter