Learning React: A Hands-On Guide to Building Web Applications Using React and Redux by Kirupa Chinnathambi

Learning React: A Hands-On Guide to Building Web Applications Using React and Redux by Kirupa Chinnathambi

Author:Kirupa Chinnathambi [Chinnathambi, Kirupa]
Language: eng
Format: epub, pdf
Publisher: Pearson Education
Published: 2018-04-25T22:00:00+00:00


Using Portals

You need to be aware of one more DOM-related trick. So far, we’ve been dealing with HTML only in the context of what our JSX generates, either from a single component or combined through many components. This means we’re limited by the DOM hierarchy our parent components impose on us. Having arbitrary access to any DOM element anywhere on the page doesn’t seem possible. Or is it? As it turns out, you can choose to render your JSX to any DOM element anywhere on the page; you aren’t limited to just sending your JSX to a parent component. The magic behind this wizardry is a feature known as portals.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.