Exercise #90: Use State Overloads
React + TypeScript ยท 06-advanced-hooks
Go back to exercises
Open in TypeScript Playground
Goal
Goal: Add function overloads so the return type depends on the argument.
Check Solution
Run "Check Solution" to validate your code in the browser.