🚨 IMPORTANT:
Full React Course: courses.webdevsimplified.com/...
React is a complex library to use and the fact that everything is nested inside a component can make certain tasks much more difficult. One of those tasks is rendering popups and modals. It doesn't make sense for them to be rendered inside a component, but you need to access them inside a component. This would lead to a impossible problem to solve, but React thought of this for you. Portals are a way for you to render an element somewhere else while still having access to it in the component you are working on. They are a bit complex at first, though, so in this video I breakdown React portals step by step.
📚 Materials/References:
GitHub Code: github.com/WebDevSimplified/R...
React Portal Blog Article: blog.webdevsimplified.com/201...
🧠 Concepts Covered:
- How to use portals in React
- How to create a modal in React
- Portal best practices
- How events are handled in portals
🌎 Find Me Here:
My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
#ReactPortal #WDS #ReactJs
Негізгі бет Learn React Portal In 12 Minutes By Building A Modal
Пікірлер: 234