{"id":12768,"date":"2024-05-27T11:20:05","date_gmt":"2024-05-27T02:20:05","guid":{"rendered":"https:\/\/www.ecomottblog.com\/?p=12768"},"modified":"2024-05-27T11:28:53","modified_gmt":"2024-05-27T02:28:53","slug":"react%e3%81%ae%e7%8a%b6%e6%85%8b%e7%ae%a1%e7%90%86%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa%e3%80%8cjotai%e3%80%8d%e3%82%92%e6%8e%a1%e7%94%a8%e3%81%97%e3%81%9f%e8%83%8c%e6%99%af","status":"publish","type":"post","link":"https:\/\/test.ecomottblog.com\/?p=12768","title":{"rendered":"React\u306e\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u300cJotai\u300d\u3092\u63a1\u7528\u3057\u305f\u80cc\u666f"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002<br \/>\n\u958b\u767a\u672c\u90e8 SJC\u5171\u540c\u958b\u767a\u63a8\u9032\u5ba4\u306e\u4e2d\u91ce\u3067\u3059\u3002<\/p>\n<p>React\u3067Web\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u958b\u767a\u3092\u884c\u3046\u969b\u3001\u591a\u304f\u306e\u958b\u767a\u8005\u304c\u300c\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u300d\u306b\u3064\u3044\u3066\u4e00\u5ea6\u306f\u982d\u3092\u62b1\u3048\u308b\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>Redux\u3084Zustand\u305d\u3057\u3066\u672c\u8a18\u4e8b\u3067\u53d6\u308a\u6271\u3046Recoil\u3084Jotai\u306e\u3088\u3046\u306a\u591a\u7a2e\u591a\u69d8\u306a\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5b58\u5728\u3057\u307e\u3059\u304c\u3001\u300c\u3053\u308c\u304c\u6700\u9069\u89e3\uff01\u300d\u3068\u65ad\u8a00\u3067\u304d\u308b\u3082\u306e\u306f\u5b58\u5728\u3057\u307e\u305b\u3093\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u9078\u5b9a\u3067\u591a\u304f\u306e\u958b\u767a\u8005\u304c\u6df7\u4e71\u3059\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002<br \/>\n\uff08\u79c1\u81ea\u8eab\u3082\u304b\u306a\u308a\u8ff7\u3044\u307e\u3057\u305f\u2026<\/p>\n<p>\u305d\u3053\u3067\u4eca\u56de\u306f\u3001\u73fe\u5728\u62c5\u5f53\u3057\u3066\u3044\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u5927\u6d3b\u8e8d\u4e2d\u306e\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u3001Jotai\u306b\u3064\u3044\u3066<br \/>\n\u300c<strong>\u306a\u305cJotai\u3092\u63a1\u7528\u3057\u305f\u306e\u304b<\/strong>\u300d\u3068\u3044\u3046\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u306b\u7126\u70b9\u3092\u5f53\u3066\u3001<br \/>\nRecoil\u3068Jotai\u3067\u8ff7\u3063\u3066\u3044\u308b\u65b9\u3001\u3042\u308b\u3044\u306f\u300c\u305d\u3082\u305d\u3082Jotai\u3063\u3066\u4f55\uff1f\u300d\u3068\u3044\u3046\u65b9\u306b\u5411\u3051\u3066\u3001Jotai\u306e\u6982\u8981\u3068\u305d\u306e\u9b45\u529b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h2>\u306a\u305c\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5fc5\u8981\u306a\u306e\u304b<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13124\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/05\/man-2877135_1280-1024x654.jpg\" alt=\"\" width=\"1024\" height=\"654\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/man-2877135_1280-1024x654.jpg 1024w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/man-2877135_1280-300x192.jpg 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/man-2877135_1280-768x491.jpg 768w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/man-2877135_1280-304x194.jpg 304w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/man-2877135_1280-282x180.jpg 282w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/man-2877135_1280.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u305d\u3082\u305d\u3082\u300c\u306a\u305c\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5fc5\u8981\u306a\u306e\uff1f\u300d<br \/>\n\u3068\u7591\u554f\u306b\u601d\u3046\u65b9\u3082\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u5699\u307f\u7815\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u306d\u3002<\/p>\n<p>Web\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306b\u304a\u3044\u3066\u3001\u4f55\u304b\u306e\u72b6\u614b\u305d\u306e\u3082\u306e\u3084\u3001\u305d\u306e\u72b6\u614b\u306b\u7d10\u3065\u304f\u60c5\u5831\u3092\u3001\u753b\u9762\u3092\u307e\u305f\u3044\u3067\u6301\u3063\u3066\u304a\u304d\u305f\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30e6\u30fc\u30b6\u30fc\u306e\u8a8d\u8a3c\u60c5\u5831<\/strong><\/li>\n<li><strong>\u30b5\u30fc\u30d0\u30fc\u306e\u30ec\u30b9\u30dd\u30f3\u30b9<\/strong><\/li>\n<li><strong>\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u305f\u30c7\u30fc\u30bf<\/strong><\/li>\n<li><strong>\u6c38\u7d9a\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u30ed\u30fc\u30ab\u30eb\u30c7\u30fc\u30bf<\/strong><\/li>\n<li><strong>UI\u306e\u72b6\u614b<\/strong><\/li>\n<\/ul>\n<p>\u3053\u3046\u3057\u305f\u3082\u306e\u3092\u3001React\u7b49\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u306fState\uff08\u72b6\u614b\uff09\u3068\u547c\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<p>\u5404\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3053\u308c\u3089\u306e\u72b6\u614b\u3092\u500b\u5225\u306b\u7ba1\u7406\u3059\u308b\u3068\u3001\u30b3\u30fc\u30c9\u306e\u8907\u96d1\u6027\u304c\u5897\u3057\u3001\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3092\u4fdd\u3064\u3053\u3068\u304c\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5927\u898f\u6a21\u306b\u306a\u308b\u306b\u3064\u308c\u3066\u3053\u306e\u72b6\u614b\u7ba1\u7406\u306e\u30b3\u30b9\u30c8\u304c\u5897\u3048\u308b\u305f\u3081\u3001\u30b7\u30f3\u30d7\u30eb\u3055\u3092\u76ee\u6307\u3057\u3066\u3044\u305fJavaScript\u306eSPA\u304c\u9006\u306b\u7169\u96d1\u5316\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3057\u305f\u7406\u7531\u3067\u3001\u79c1\u306fReact\u3067\u306e\u72b6\u614b\u7ba1\u7406\u306f\u5b9f\u88c5\u96e3\u6613\u5ea6\u306e\u9ad8\u3044\u30c6\u30fc\u30de\u306e\u4e00\u3064\u3060\u3068\u611f\u3058\u3066\u3044\u307e\u3059\u3002\u3002\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u3053\u3067\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5927\u6d3b\u8e8d\uff01<\/p>\n<p>\u8907\u96d1\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3082\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3092\u4fdd\u3061\u306a\u304c\u3089\u52b9\u7387\u7684\u306b\u958b\u767a\u3092\u9032\u3081\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u9069\u5207\u306a\u72b6\u614b\u7ba1\u7406\u306f\u3001\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u3067\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3057\u3084\u3059\u3044\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u306e\u69cb\u7bc9\u306b\u4e0d\u53ef\u6b20\u306a\u306e\u3067\u3059\u3002<\/p>\n<h2>Store\u30d9\u30fc\u30b9 vs Atom\u30d9\u30fc\u30b9\uff1a\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u6bd4\u8f03<\/h2>\n<p>\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306f\u5927\u304d\u304f\u5206\u3051\u3066\u300cStore\u30d9\u30fc\u30b9\u300d\u3068\u300cAtom\u30d9\u30fc\u30b9\u300d\u306e\u4e8c\u3064\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u304c\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n<p>Store\u30d9\u30fc\u30b9\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u306e\u72b6\u614b\u3092\u4e00\u5143\u7684\u306b\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u4e2d\u592e\u30b9\u30c8\u30a2\u3092\u6301\u3064\u306e\u306b\u5bfe\u3057\u3001Atom\u30d9\u30fc\u30b9\u306f\u3001\u8907\u6570\u306e\u5c0f\u3055\u306a\u72b6\u614b\u5358\u4f4d\uff08Atom\uff09\u3092\u6301\u3061\u3001\u305d\u308c\u305e\u308c\u306eAtom\u304c\u72ec\u7acb\u3057\u3066\u7ba1\u7406\u3055\u308c\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u9805\u76ee<\/th>\n<th>Store\u30d9\u30fc\u30b9<\/th>\n<th>Atom\u30d9\u30fc\u30b9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5b66\u7fd2\u30b3\u30b9\u30c8<\/td>\n<td>\u4e2d\u7a0b\u5ea6<\/td>\n<td>\u4f4e\u3044<\/td>\n<\/tr>\n<tr>\n<td>\u6a5f\u80fd\u306e\u8907\u96d1\u3055<\/td>\n<td>\u9ad8\u3044<\/td>\n<td>\u4f4e\u3044<\/td>\n<\/tr>\n<tr>\n<td>\u8868\u73fe\u529b<\/td>\n<td>\u9ad8\u3044<\/td>\n<td>\u9ad8\u3044<\/td>\n<\/tr>\n<tr>\n<td>\u30b3\u30fc\u30c9\u91cf<\/td>\n<td>\u591a\u3044<\/td>\n<td>\u5c11\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<td>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u91cf<\/td>\n<td>\u591a\u3044<\/td>\n<td>\u5c11\u306a\u3044<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Store\u30d9\u30fc\u30b9\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u306e\u72b6\u614b\u3092\u4e00\u5143\u7684\u306b\u7ba1\u7406\u3059\u308b\u305f\u3081\u660e\u78ba\u306a\u30c7\u30fc\u30bf\u30d5\u30ed\u30fc\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u5927\u898f\u6a21\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u5f79\u7acb\u3061\u307e\u3059\u304c\u3001\u5b66\u7fd2\u30b3\u30b9\u30c8\u3084\u30b3\u30fc\u30c9\u306e\u8907\u96d1\u3055\u304c\u6bd4\u8f03\u7684\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3001Atom\u30d9\u30fc\u30b9\u3067\u306f\u3001\u500b\u3005\u306e\u72b6\u614b\u5358\u4f4d\u304c\u72ec\u7acb\u3057\u3066\u7ba1\u7406\u3055\u308c\u308b\u305f\u3081\u3001\u305d\u308c\u305e\u308c\u306e\u72b6\u614b\u3092\u7c21\u5358\u306b\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002\u72ec\u7acb\u3057\u305f\u72b6\u614b\u7ba1\u7406\u304c\u5fc5\u8981\u306a\u5834\u5408\u3084\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6700\u9069\u5316\u304c\u91cd\u8981\u306a\u5834\u5408\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002Atom\u30d9\u30fc\u30b9\u306f\u3001\u5b66\u7fd2\u30b3\u30b9\u30c8\u3084\u30b3\u30fc\u30c9\u306e\u8907\u96d1\u3055\u304c\u4f4e\u304f\u3001\u5c0f\u898f\u6a21\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u5358\u7d14\u306a\u72b6\u614b\u7ba1\u7406\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u9078\u5b9a<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13121\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-01-172625-1-1024x347.png\" alt=\"\" width=\"1024\" height=\"347\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-01-172625-1-1024x347.png 1024w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-01-172625-1-300x102.png 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-01-172625-1-768x260.png 768w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-01-172625-1-304x103.png 304w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-01-172625-1-282x95.png 282w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-01-172625-1.png 1306w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><a href=\"https:\/\/npmtrends.com\/jotai-vs-react-redux-vs-recoil-vs-redux-vs-zustand\">npm trends<\/a> \u306e\u30c7\u30fc\u30bf\u3092\u898b\u308b\u3068\u3001<br \/>\nReact\u306e\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u306fRedux\u4e00\u5f37\u306a\u3093\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u306a\u305cRedux\u3092\u63a1\u7528\u3057\u306a\u304b\u3063\u305f\u306e\u304b\u3068\u3044\u3046\u3068\u3001<strong>\u8907\u96d1\u3060\u3063\u305f\u304b\u3089<\/strong>\u3002<\/p>\n<p>\u300c\u3053\u308c\u3060\u3051\u6839\u5f37\u3044\u4eba\u6c17\u304c\u3042\u308b\u306a\u3089\u3001Redux\u3067\u826f\u3044\u306e\u3067\u306f\u300d\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001<br \/>\n\u8abf\u67fb\u3092\u9032\u3081\u3001\u8a66\u9a13\u5b9f\u88c5\u3057\u3066\u307f\u308b\u3068\u304b\u306a\u308a\u8907\u96d1\u306a\u3053\u3068\u306b\u6c17\u304c\u4ed8\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u7406\u89e3\u3057\u3065\u3089\u3044\u3068\u3053\u308d\u304c\u3042\u308a\u3001\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u304b\u304b\u308b\u306e\u3067Store\u30d9\u30fc\u30b9\u306e\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3084\u3081\u3088\u3046\u2026<br \/>\n\u3068\u3001\u540c\u3058\u304f Store\u30d9\u30fc\u30b9\u306eZustand\u3092\u30b9\u30eb\u30fc\u3057\u3066\u3001Atom\u30d9\u30fc\u30b9\u306eJotai\u3092\u63a1\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>Jotai\u3092\u63a1\u7528\u3057\u305f\u30ef\u30b1<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13232\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/05\/Jotai-1-1024x576.jpg\" alt=\"\" width=\"1024\" height=\"576\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/Jotai-1-1024x576.jpg 1024w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/Jotai-1-300x169.jpg 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/Jotai-1-768x432.jpg 768w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/Jotai-1-304x171.jpg 304w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/Jotai-1-282x159.jpg 282w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/Jotai-1.jpg 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u5b9f\u306f\u3001\u5f53\u521d\u306fJotai\u3067\u306f\u306a\u304f\u3001Meta\uff08\u65e7FaceBook\uff09\u793e\u304c2020\u5e74\u306b\u767a\u8868\u3057\u305f\u300cRecoil\u300d\u3092\u63a1\u7528\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>Redux\u306b\u6bd4\u3079\u3066\u69cb\u9020\u304c\u5358\u7d14\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u300c\u6271\u3044\u3084\u3059\u304f\u3066\u3044\u3044\u3058\u3083\u3093\uff5e\u300d\u3068\u8abf\u67fb\u304a\u3088\u3073\u8a66\u9a13\u5b9f\u88c5\u3092\u9032\u3081\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001<br \/>\nRecoil\u306f\u8af8\u4e8b\u60c5\u30672022\u5e74\u304b\u3089\u958b\u767a\u304c\u6b62\u307e\u3063\u3066\u3044\u308b\u3068\u306e\u3053\u3068\u3067\u3001\u914d\u5e03\u5143\u3067\u7e70\u308a\u8fd4\u3057\u52e7\u3081\u3089\u308c\u3066\u3044\u305f\u3053\u3068\u3082\u3042\u308aJotai\u306b\u4e57\u308a\u63db\u3048\u307e\u3057\u305f\u3002<\/p>\n<h3>Jotai\u3068\u306f<\/h3>\n<p>Jotai\u306e\u7279\u5fb4\u3092\u3056\u3063\u304f\u308a\u307e\u3068\u3081\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<ul data-sourcepos=\"4:1-10:0\">\n<li data-sourcepos=\"4:1-4:71\"><strong>\u65e5\u672c\u8a9e\u306e\u300c\u72b6\u614b\u300d\u304b\u3089\u540d\u4ed8\u3051\u3089\u308c\u305f<\/strong><\/li>\n<li data-sourcepos=\"5:1-5:98\"><strong>Recoil\u306b\u30a4\u30f3\u30b9\u30d1\u30a4\u30a2\u3055\u308c\u3001Atom\u30e2\u30c7\u30eb\u3092\u63a1\u7528<\/strong><\/li>\n<li data-sourcepos=\"6:1-6:206\"><strong>Atom\u306e\u4f9d\u5b58\u95a2\u4fc2\u306b\u57fa\u3065\u3044\u3066\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u304c\u6700\u9069\u5316\u3055\u308c\u308b\u305f\u3081\u4f59\u5206\u306a\u518d\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u554f\u984c\u3092\u89e3\u6c7a\u3001\u30e1\u30e2\u5316\u6280\u8853\u306e\u5fc5\u8981\u6027\u3092\u6392\u9664<\/strong><\/li>\n<li data-sourcepos=\"7:1-7:41\"><strong>\u30df\u30cb\u30de\u30eb\u306aAPI\u3092\u63d0\u4f9b<\/strong><\/li>\n<li data-sourcepos=\"8:1-10:0\"><strong>TypeScript\u6307\u5411<\/strong><\/li>\n<\/ul>\n<p>\u300cRecoil\u306b\u30a4\u30f3\u30b9\u30d1\u30a4\u30a2\u3055\u308c\u305f\u300d\u3068\u3042\u308b\u3088\u3046\u306b\u3001<br \/>\nRecoil\u306e\u826f\u3044\u3068\u3053\u308d\u3092\u305d\u306e\u307e\u307e\u306b\u3001\u4e0d\u4fbf\u306a\u3068\u3053\u308d\u304c\u7121\u304f\u306a\u3063\u305f\u4e0a\u4f4d\u4e92\u63db(?)\u306e\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3082\u4f5c\u8005\u304c\u65e5\u672c\u4eba\u3067\u65e5\u672c\u8a9e\u306e\u60c5\u5831\u304c\u8c4a\u5bcc\u3002<br \/>\n\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3082\u8a73\u7d30\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u958b\u767a\u3092\u9032\u3081\u3084\u3059\u3044\u3067\u3059\uff01<\/p>\n<h3>Jotai\u306e\u9b45\u529b\u2460<\/h3>\n<p>Jotai\u306e\u6700\u5927\u306e\u9b45\u529b\u3068\u8a00\u3063\u3066\u3082\u904e\u8a00\u3067\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u3001<strong>\u3068\u306b\u304b\u304f\u30b7\u30f3\u30d7\u30eb<\/strong>\u3002<\/p>\n<p>React\u304c\u63d0\u4f9b\u3059\u308b\u4ee3\u8868\u7684\u306a\u30d5\u30c3\u30af\u3067\u3042\u308buseState\u306b\u975e\u5e38\u306b\u8fd1\u3044\u611f\u899a\u3067\u30b9\u30c6\u30fc\u30c8\u3092\u6271\u3048\u308b\u306e\u3067\u3001\u30df\u30cb\u30de\u30e0\u306b\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u307e\u3059\u3002<br \/>\n\u958b\u767a\u8005\u3068\u3057\u3066\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u76f4\u611f\u7684\u306a\u65b9\u304c\u5b09\u3057\u3044\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u898b\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u3001\u305d\u306e\u4f7f\u3044\u3084\u3059\u3055\u304c\u308f\u304b\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:default decode:true\">\/\/ state.ts\nimport { atom } from 'jotai'\n\nexport const state = atom&lt;string&gt;(\"Hello World\");<\/pre>\n<pre class=\"lang:default decode:true\">\/\/ App.tsx\nimport { useAtom } from \"jotai\";\nimport { state } from \".\/state\";\n\nfunstion App () {\n  const [exampleState, setExampleState] = useAtom(state);\n\n  return &lt;&gt;{exampleState}&lt;\/&gt;; \/\/ \u753b\u9762\u306b\u306f \"Hello World\" \u304c\u8868\u793a\u3055\u308c\u307e\u3059\n};\n\nexport default App;\n<\/pre>\n<h3>Jotai\u306e\u9b45\u529b\u2461<\/h3>\n<p>\u4e8c\u3064\u76ee\u306e\u9b45\u529b\u306f\u4f55\u3068\u8a00\u3063\u3066\u3082<strong>\u5c0e\u5165\u30b3\u30b9\u30c8\u304c\u4f4e\u3044\u3053\u3068<\/strong>\u3067\u3059\u3002<\/p>\n<p>\u9b45\u529b\u2460\u3067\u30b7\u30f3\u30d7\u30eb\u3055\u306b\u3064\u3044\u3066\u89e6\u308c\u307e\u3057\u305f\u304c<br \/>\nuseState\u3092\u4f7f\u7528\u3059\u308b\u4ee3\u308f\u308a\u306buseAtom\u3092\u4f7f\u7528\u3059\u308b\u3060\u3051\u3067\u5c0e\u5165\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5206\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3088\u306d\uff1f<br \/>\n\u305f\u3063\u305f\u3053\u308c\u3060\u3051\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u7ba1\u7406\u3092Jotai\u306b\u79fb\u884c\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u4ed6\u306b\u3082Jotai\u306e\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u304c\u3001<br \/>\nReact\u304c\u63d0\u4f9b\u3059\u308b\u6a5f\u80fd\u3068\u4f3c\u3066\u3044\u308b\u90e8\u5206\u304c\u591a\u304f\u3001Jotai\u5168\u4f53\u304c\u4e00\u8cab\u3057\u305f\u4f7f\u3044\u3084\u3059\u3055\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n<h3>Jotai\u306e\u9b45\u529b\u2782<\/h3>\n<p>\u307e\u305a\u306f\u3053\u3061\u3089\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:default decode:true\">\/\/ \u89aa\u304b\u3089\u5b50\u3078\u2026\nfunction ParentComponent() {\n  const [data, setData] = useState('Sample Data');\n \n  return &lt;ChildComponent data={data} \/&gt;;\n}\n \n\/\/ \u5b50\u304b\u3089\u5b6b\u3078\u2026\nfunction ChildComponent(props) {\n  return &lt;GrandChildComponent data={props.data} \/&gt;;\n}\n\n\/\/ \u5b6b\u304b\u3089\u3072\u5b6b\u3078\u2026\nfunction GrandChildComponent(props) {\n  return &lt;GreatGrandChildComponent data={props.data} \/&gt;;\n}\n\n\/\/ \u3072\u5b6b\u3067\u30c7\u30fc\u30bf\u3092\u8868\u793a\nfunction GreatGrandChildComponent(props) {\n  return &lt;h1&gt;{props.data}&lt;\/h1&gt;;\u3000\/\/ \u753b\u9762\u306b\u306f \"Sample Data\" \u304c\u8868\u793a\u3055\u308c\u307e\u3059\n}<\/pre>\n<p>\u7f8e\u3057\u304f\u306a\u3044\u3002\u3002\u3002data={&#8230;} \u304c\u8e0a\u3063\u3066\u3044\u3066\u898b\u82e6\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>React\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u304c\u5927\u898f\u6a21\u306b\u306a\u308b\u307b\u3069\u89aa\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304b\u3089\u5b50\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3078\u30c7\u30fc\u30bf\u3092\u6e21\u3059\u300cprops\u306e\u30d0\u30b1\u30c4\u30ea\u30ec\u30fc\u300d\u304c\u5897\u3048\u3001\u53ef\u8aad\u6027\u304c\u4f4e\u4e0b\u3057\u304c\u3061\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30c7\u30fc\u30bf\u3092\u5fc5\u8981\u3068\u3059\u308b\u5168\u3066\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306bprops\u3092\u6e21\u3055\u306a\u3051\u308c\u3070\u306a\u3089\u305a\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u9593\u306e\u4f9d\u5b58\u95a2\u4fc2\u304c\u5897\u3048\u3001\u518d\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u304c\u591a\u767a\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3082\u4f4e\u4e0b\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\uff01Jotai\u3092\u5229\u7528\u3057\u3066\u3053\u306e\u3088\u3046\u306b\u5909\u3048\u308b\u3068\u3002\u3002\u3002<\/p>\n<pre class=\"lang:default decode:true\">import React from 'react';\nimport { atom, useAtom } from 'jotai';\n\n\/\/ \u72b6\u614b\u3092\u5b9a\u7fa9\nconst dataAtom = atom('Sample Data');\n\n\/\/ \u89aa\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\nfunction ParentComponent() {\n  return &lt;ChildComponent \/&gt;;\n}\n\n\/\/ \u5b50\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\nfunction ChildComponent() {\n  return &lt;GrandChildComponent \/&gt;;\n}\n\n\/\/ \u5b6b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\nfunction GrandChildComponent() {\n  return &lt;GreatGrandChildComponent \/&gt;;\n}\n\n\/\/ \u3072\u5b6b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\nfunction GreatGrandChildComponent() {\n  const [data] = useAtom(dataAtom);\n  return &lt;div&gt;{data}&lt;\/div&gt;;\n}\n<\/pre>\n<p>\u898b\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f\u306d\uff01<br \/>\n\u5fc5\u8981\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u307f\u304c\u72b6\u614b\u306e\u5909\u66f4\u3092\u76e3\u8996\u3059\u308b\u305f\u3081\u3001\u4e0d\u8981\u306a\u518d\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3082\u6e1b\u308a\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u300cJotai\u300d\u3092\u63a1\u7528\u3057\u305f\u7d4c\u7def\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u7121\u99c4\u306a\u518d\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u304c\u6e1b\u308a\u3001\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u304c\u304b\u306a\u308a\u4e0a\u304c\u3063\u305f\u306e\u3067\u63a1\u7528\u3057\u3066\u826f\u304b\u3063\u305f\u3067\u3059\uff01<br \/>\n\u30b7\u30f3\u30d7\u30eb\u306b\u5b9f\u88c5\u3067\u304d\u308b\u306e\u3067\u3001\u5f8c\u304b\u3089\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u5408\u6d41\u3059\u308b\u30e1\u30f3\u30d0\u30fc\u306e\u5b66\u7fd2\u30b3\u30b9\u30c8\u3082\u4f4e\u304f\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<p>1\u5e74\u9593\u3067\u5897\u52a0\u3057\u305fGitHub\u306e\u30b9\u30bf\u30fc\u6570\u306b\u3088\u308b\u30e9\u30f3\u30ad\u30f3\u30b0\u304c\u307e\u3068\u3081\u3089\u308c\u3066\u3044\u308b<a href=\"https:\/\/risingstars.js.org\/2023\/ja#section-statemanagement\">JavaScript Rising Stars<\/a>\u3092\u898b\u3066\u307f\u308b\u3068\u3001Store\u30d9\u30fc\u30b9\u306eZustand\u306b\u306f\u307e\u3060\u8ca0\u3051\u3066\u3044\u307e\u3059\u304c\u3001Jotai\u304c\u4f38\u3073\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\uff01<br \/>\n\u305d\u3093\u306a\u308f\u3051\u3067\u52dd\u624b\u306a\u304c\u3089\u79c1\u306fJotai\u3092\u5fdc\u63f4\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13127\" src=\"https:\/\/www.ecomottblog.com\/cmswp\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-02-113909.png\" alt=\"\" width=\"727\" height=\"425\" srcset=\"https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-02-113909.png 727w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-02-113909-300x175.png 300w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-02-113909-304x178.png 304w, https:\/\/test.ecomottblog.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-02-113909-282x165.png 282w\" sizes=\"(max-width: 727px) 100vw, 727px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002 \u958b\u767a\u672c\u90e8 SJC\u5171\u540c\u958b\u767a\u63a8\u9032\u5ba4\u306e\u4e2d\u91ce\u3067\u3059\u3002 React\u3067Web\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u958b\u767a\u3092\u884c\u3046\u969b\u3001\u591a\u304f\u306e\u958b\u767a\u8005\u304c\u300c\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u300d\u306b\u3064\u3044\u3066\u4e00\u5ea6\u306f\u982d\u3092\u62b1\u3048\u308b\u601d\u3044\u307e\u3059\u3002 Redux\u3084Zustand\u305d\u3057\u3066\u672c\u8a18\u4e8b\u3067\u53d6 [&hellip;]<\/p>\n","protected":false},"author":108,"featured_media":13232,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[198,166,199],"_links":{"self":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/12768"}],"collection":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/users\/108"}],"replies":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12768"}],"version-history":[{"count":36,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/12768\/revisions"}],"predecessor-version":[{"id":13233,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/12768\/revisions\/13233"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/media\/13232"}],"wp:attachment":[{"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}