Upgrade to Pro — share decks privately, control downloads, hide ads and more …

状態管理ライブラリZustandの導入から運用まで

daiki
September 06, 2024

 状態管理ライブラリZustandの導入から運用まで

daiki

September 06, 2024
Tweet

Other Decks in Programming

Transcript

  1. τοϓμ΢ϯతͳΞϓϩʔνɿ;VTUBOEɺ3FEVY  SPPU DPNQPOFOU DPNQPOFOU DPNQPOFOU DPNQPOFOU • 4JOHMF4UPSF •

    தԝूݖతʹ؅ཧ͞Εͨ4UPSFΛ֤ DPNQPOFOUͰݺͼग़ͯ͠࢖༻͢Δ 4UPSF
  2. ϘτϜΞοϓతͳΞϓϩʔνɿ+PUBJɺ3FDPJM  SPPU DPNQPOFOU DPNQPOFOU DPNQPOFOU DPNQPOFOU "UPN • "UPNͱݺ͹ΕΔখ͞ͳঢ়ଶ୯ҐΛج

    ຊͱ͢Δ • ֤"UPN͸ಠཱ͓ͯ͠ΓɺඞཁʹԠ͡ ͯ૊Έ߹ΘͤΔ͜ͱ͕Ͱ͖Δ ◦ ࠷খ୯Ґ͔Β࢝Ίͯঃʑʹେ͖ͳ ߏ଄Λ࡞Γ্͛ΔϘτϜΞοϓత ͳߟ͑ํ "UPN
  3. خ͍͠ͱ͜Ζ  • 1SPWJEFSແ͠ͰطଘͷίʔυʹಋೖͰ͖ΔͨΊɺطଘίʔυ΍ςε τ΁ͷมߋ͕࠷খݶͰɺ)PPLͷςετ΋༰қʹͰ͖Δ • ঢ়ଶ؅ཧʹඞཁͳॲཧΛҰׅͰએݴͰ͖Δ ◦ ੾Γ཭ͦ͏ͱࢥͬͨ࣌ʹ੾Γ཭ͤΔ ◦

    FTMJOUQMVHJOTUSJDUEFQFOEFODJFT౳ͱ૊Έ߹Θͤͯɺ JNQPSUͰ͖ΔϞδϡʔϧͷ੍ݶͳͲ΋؆୯ • ϛυϧ΢ΣΞͰػೳΛ֦ுͰ͖Δ ◦ ґଘϥΠϒϥϦΛ཈͑ΔɾίϯτϩʔϧͰ͖Δ
  4. ༨ஊɿܕਪ࿦Λޮ͔ͤΔํ๏΋͋Γ·͢  • DPNCJOFϛυϧ΢ΣΞΛ࢖༻͢Δ ◦ ଞͷϛυϧ΢ΣΞͱͷซ༻͕೉͍͠ ◦ ಛఆͷ৔߹ʹܕ҆શͰͳ͍<> • [VTUBOETMJDFT

    [VTUBOEWBMUJP [VTUBOEYTͳͲͷϥΠϒϥϦΛ ซ༻͢Δ ◦ ॻ͖৺஍͕มΘΔ͜ͱͱɺґଘΛۃྗݮΒ͍ͨ͜͠ͱ͔Β࢖༻͠ ͍ͯͳ͍ ◦ ؤுͬͯॻ͍ͨΒྑ͍࿩Ͱ͸͋ΔͷͰɺɺ <>IUUQT[VTUBOEEPDTQNOESTHVJEFTUZQFTDSJQUUZQFTDSJQUHVJEF
  5. W΁ͷظ଴ • ಛʹػೳ͕૿͑ΔΘ͚Ͱ͸ͳ͍ʢ#SFBLJOH͕͋Δʣ ◦ FTɺ3FBDUҎલͷαϙʔτΛ΍ΊΔͳͲ • όϯυϧαΠζ͕খ͘͞ͳΔ ◦ ݹ͍ػೳΛ࡟ͬͯεϦϜԽ ◦

    LCˠLC΄ͲʢNJOJGJFEʣ ◦ *NNFSΛซ༻͢Δؔ܎ͰαΠζ͕ Ћ͞ΕΔͨΊຊମ͕খ͍͞ͱ خ͍͠  IUUQTHJUIVCDPNQNOEST[VTUBOESFMFBTFTUBHWSD