kanko-dori / inol

Inol
0 stars 0 forks source link

Itemの登録でuserIdを使う #136

Closed norikmb closed 2 years ago

norikmb commented 2 years ago
import { useEffect } from 'react';
import { useLiffUserId } from '~/utils/liff';  
const userId = useLiffUserId();
   useEffect(() => {
     if (userId !== undefined) {
       alert(userId);
     }
   }, [userId]);