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

useImperativeHandle を迷いながら使った話

kamiyam
October 04, 2024

useImperativeHandle を迷いながら使った話

React Osaka 2024 10

kamiyam

October 04, 2024
Tweet

More Decks by kamiyam

Other Decks in Programming

Transcript

  1. “ྫ͑͹ɺModal ίϯϙʔωϯτ͔Β { open, close } ͷΑ͏ͳ໋ྩ ܕͷϋϯυϧΛެ։͢ΔͷͰ͸ͳ͘ɺ<Modal isOpen={isOpen} />

    ͷΑ͏ʹɺisOpen Λ props ͱͯ͠ड͚औΔํ͕ྑ͍Ͱ͠ΐ͏ɻ ໋ྩܕͷಈ࡞Λ props ͱͯ͠ެ։͢Δࡍʹ͸ΤϑΣΫτ͕໾ཱͪ ·͢ɻ”