How to type the setState function from the useState hookReactJSTypeScriptSnippetsA deep dive into how to properly type a setState function from the useState hook.