Jotaiã¨Recoilã¯ä¼¼ã¦ã¾ããä¸æ¹ã§ãç´°ããéãã¯å¤ãããã¾ãã決å®çãªéããä¸ã¤æããã¨ããã°ãstringãkeyã«ãã¦ããRecoilã«å¯¾ãã¦ãJotaiã¯atomã®object referenceãkeyã«ãã¦ãã¾ãã表é¢çã«ã¯string keyãæå®ããªãã¦è¯ãæ軽ãã売ãã«ãªã£ã¦ãã¾ãã ããããæ¯è¼ï¼ // Recoil const greeting = atom({ key: 'greeting', default: 'hello' }); // Jotai const greeting = atom('hello'); ã§ã¯ã表é¢çã§ã¯ãªãéãã¯ä½ã§ãããããããä¸ã¤ã®ãã¤ã³ãã¯å é¨å®è£ ã« Map ã§ã¯ãªã WeakMap ã使ã£ã¦ãããã¨ã§ããã¤ã¾ããatomã®referenceãç¡ããªãã°Jotaiã®storeããããã®ãã¡æ¶ããã¨ãããã¨ã§ãã
{{#tags}}- {{label}}
{{/tags}}