import React, { useRef } from "react"; import { AsyncWidget } from "../widgets/AsyncWidget"; import { User, UserApi } from "../api/UserApi"; export function ProfileRoute(): React.ReactElement { const [user, setUser] = React.useState(null); const load = async () => { setUser(await UserApi.GetUserInfo()); }; const counter = useRef(0); return ( ( <>

ready !!! {user!.name}

)} /> ); }