Forwarding Refs in React JS | #React JS | EP-14
Ref forwarding is a technique for automatically passing a ref through a component to one of its children. React components hide their implementation details, including their rendered output. Other components using FancyButton usually will not need to obtain a ref to the inner button DOM element. This is good because it prevents components from relying on each other’s DOM structure too much.
Ref forwarding is an opt-in feature that lets some components take a ref they receive, and pass it further down (in other words, “forward” it) to a child.
#reactjstutorial #reactjs #reactjsbeginners #jasacadamy
Видео Forwarding Refs in React JS | #React JS | EP-14 автора Основы React: создание веб-приложений
Видео Forwarding Refs in React JS | #React JS | EP-14 автора Основы React: создание веб-приложений
Информация
28 ноября 2023 г. 4:22:13
00:07:58
Похожие видео