<TELEPORTING THROUGH PORTALS/> IN 

By Nikhil Sharma

HI....IT's ME

Full Stack Developer |Blogger| Open Source Contributor| Love React and Node !

nik72619c

@niksharma1997

Check out my blogs at:-

https://medium.com/@nikhilsharmarockstar21

AGENDA

  • What the heck is portals?

  • Why ?

  • When ?

  • A SUPER SIMPLE EXAMPLE!

PORTALS?

"Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component."

DIDNT GET IT??

WHY?

Perfect for scenarios where CSS styles are restraining your elements

Overflow

z-index

WHEN TO USE?

  • Modals

  • Tooltips

  • Floating menus

  • Widgets

USAGE

LETS GET STARTED THEN...

BOOM! WE DID IT !!

SOME GREAT SOURCES 

Get the code

https://github.com/nik72619c/ReactDelhi-Tech-Talks

}

{

VIVE LA PORTALS !

THANK YOU

React-Delhi-NCR-portals

By nik72619c

React-Delhi-NCR-portals

  • 284
Loading comments...

More from nik72619c