Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react portals

ReactDOM.createPortal(child, container)
// The first argument (child) is any renderable React child, such as an element, string, or fragment. 
//The second argument (container) is a DOM element.
Source by reactjs.org #
 
PREVIOUS NEXT
Tagged: #react #portals
ADD COMMENT
Topic
Name
9+8 =