2
1

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】useContextとJotaiの違い

Last updated at Posted at 2025-03-25

はじめに

Reactで開発をしていて値や関数を渡すということをするときにuseContextを使っていましたが、Jotaiを学んだ際、違いをよく理解できていなかったため今回まとめてみました。
間違いあればご指摘をお願いします。
内容については、単純な挙動でまとめています。


1.png

2.png

3.png

4.png

5.png

6.png

7.png

8.png

9.png

10.png

11.png

12.png

13.png

14.png

15.png

16.png

17.png

おわりに

沢山使いまわして、理解を深めていきます。


2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?