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?

reactコース#4

0
Posted at

今日やったこと

・state

学んだこと

・同じ更新用関数を繰り返したかったら関数型更新を使う

setCount(count + 1);  
setCount(count + 1); 
これはだめ

setCount(prev => prev + 1);
setCount(prev => prev + 1);
関数型更新を使う

次やること

・55 ステートとコンポーネントの関係

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?