JavaScriptが無効です。ブラウザの設定でJavaScriptを有効にしてください
再生時間:
投稿日:
動画サイト:
画質:
We'll go over the 3 ways to create refs in React: string refs (don't use!), callback refs, and the new React.createRef() approach.
YouTube-Leigh Halliday
Intro
Code overview
Warning about string refs
Passing a function to a ref
Using React createRef
Getting the value of a ref
Getting a ref in the parent of something that lives in the child
Passing a ref as a prop
Defining prop types
Conclusion