();
- const { idx } = useParams<{ idx: string }>();
-
- const init = useMemo(
- () => async () => {
- // setUser(await getByIdx(_id));
- setUser(await updateLolInfo(idx));
- },
- [idx],
- );
-
- useEffect(() => {
- init();
- }, [init]);
-
return (
<>
- {user ? (
- <>
- idx: {user.idx}
- id: {user.id}
- nickname: {user.nickname}
- profileImageUrl: {user.profileImageUrl}
- lolTear: {user.lolTear}
- lolLevel: {user.lolLevel}
- lolLane: {user.lolLane}
- lolChampion: {user.lolChampion}
- >
- ) : (
- {idx} : 유저 페이지 입니다.
- )}
+ 유저 페이지 입니다.
>
);
}