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