Set types on useState React Hook with TypeScript April 16, 2023 by Tarik Use this const [user, setUser] = useState<IUser>({name: 'Jon'}); See the Corresponding Type in DefinitelyTyped