Click in order · JavaScript and React course · Module 10: React Ecosystem and Future
createPortal Syntax
Arrange the createPortal syntax for rendering a modal outside the component tree:
Items to click
- )
- createPortal(
- ,
- <Modal />
- return
- document.getElementById('modal-root')
You can check the correct answer by solving this task in the CodeWorlds game.