0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ChatGPTを使用したアプリ開発記【プロフィール画面のReactデバッグ】

Posted at

コード

funciton関数でconsole.logを記述。return文には記載しない。

Profile.js
  // ログ
  console.log('currentUserId:', currentUserId);
  console.log('userId:', userId);
  console.log('typeof currentUserId:', typeof currentUserId);
  console.log('typeof userId:', typeof userId);
  console.log('isCurrentUser:', isCurrentUser);
  console.log('currentUserId:', `"${currentUserId}"`);
  console.log('userId:', `"${userId}"`);
  console.log('一致してる?', currentUserId === userId);

コンソール

コンソール上で、変数が適切な値か確認。

スクリーンショット 2025-05-13 7.09.52.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?