Escape Hatch
↔ (mech) to express logic outside React model - to direct manipulate DOM
aka Escape-Hatches
React API Escape Hatches include useRef()
& Portals
References
findDOMNode()
↔ deprecatedReactDOM API
Escape Hatch to access DOM APINode
useRef()
↔ Stateful Hook to persist Passive State Variable across renders in FC, asref
handle Escape Hatch to DOM API elementsUnidirectional binding
↔ React restricts data flow to one-way down Component Hierarchy. optional Escape Hatches existTerserPlugin
↔ Escape Hatch to patch Webpack into 21st century via PluginPortal
↔ReactDOM API
Escape Hatch to renderchildren
outside Component Hierarchy of Parent ComponentcreatePortal()
↔ReactDOM API
Escape Hatch fn to renderchild
Element to anycontainer
Element other than parent