Custom Modal in React JS With React Portals

  Рет қаралды 6,835

Monsterlessons Academy

Monsterlessons Academy

Күн бұрын

React as every other frontend framework renders all components as a tree which simplifies development significantly. But the tasks like rendering popups or modals can be more tricky because we want to render them in body to avoid problems with positioning and overflow. React solves this problem by introducing react-portals. It's a way to render an element outside of you React tree of components and be able to access in directly in the component where you want to render it.
► Download the FREE PDF Now. Pass Your JS Interview with Confidence! ➡️ monsterlessons...
► Join Thousands of Learners! Start My Advanced Courses Today ➡️ monsterlessons...
► Boost Your Knowledge! Read My Popular Blog Posts Here ➡️ monsterlessons...
LOOKING FOR THE VIDEO EDITOR? ➡️ ekaterina.kochergina.business@gmail.com
MOST POPULAR COURSES
► Javascript interview questions ➡️ monsterlessons...
► Typescript interview questions ➡️ monsterlessons...
► React interview questions ➡️ monsterlessons...
► Angular Interview Questions ➡️ monsterlessons...
► Angular Testing ➡️ monsterlessons...
► React Testing ➡️ monsterlessons...
► Building real project with Angular + NgRx ➡️ monsterlessons...
► Building real NestJS API ➡️ monsterlessons...
► Building real fullstack project ➡️ monsterlessons...
► RxJS Crash Course ➡️ monsterlessons...
SERVICES THAT I'M USING
Learn new skills anytime with Skillshare. ➡️ skillshare.eqc...
Build your website effortlessly with Squarespace ➡️ squarespace.sy...
Get fast delivery and Prime Video with Amazon ➡️ www.amazon.com/...
Get affordable domains from Namecheap ➡️ namecheap.pxf....
Protect your privacy with NordVPN today! ➡️ nordvpn.sjv.io...
Ultahost: Fast, reliable hosting for your website. ➡️ ultahost.sjv.i...
CONNECT WITH ME!
► TWITTER - / monster_lessons
► INSTAGRAM - / monsterlessonsacademy
► FACEBOOK - / monsterlessonsacademy
► LINKEDIN - / monsterlessons-academy
► TIKTOK - / monsterlessonsacademy
REFERENCES
► Source code - github.com/mon...
This video is NOT sponsored. Some product links are affiliate links which means if you buy something I'll receive a small commission.

Пікірлер: 20
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 жыл бұрын
WATCH NEXT: React Interview Questions and Answers - Dominate Your Next Interview - kzbin.info/www/bejne/r4Kro2elpd-ShJIsi=51b2XP_84GH3q6oF
@herbertk9266
@herbertk9266 3 жыл бұрын
Thank you so much, keep making more tutorials you will get tens of thousands of subscribers.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 жыл бұрын
Thanks! I hope it will happen soon.
@Programming162
@Programming162 Жыл бұрын
I like your video very very much you deserved 100 million subscribers really
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Thank you!
@oncoding4520
@oncoding4520 Жыл бұрын
Your content is very good, and very informative and is not very short. usually from a beginner perspective you want something like medium length video in which you get to the point but you cover up also some context to understand the general idea. I have seen some of your videos and i really like it thats why i will subscribe. thank your very much for your effort.
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Awesome! Thank you!
@dimamarius9791
@dimamarius9791 2 жыл бұрын
Very useful, thanks!
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Glad to hear that!
@irambarkat661
@irambarkat661 Жыл бұрын
hi, this is a nice tutorial and teaches modal in a simple way. but how can we off the scroll of the body. at Present when I am calling the modal I can scroll the content of the body normally there shouldn't be any interaction with the body when the modal is opened. Can you please help me with it?
@mohammadkhalaf8843
@mohammadkhalaf8843 2 жыл бұрын
It helped. Thank you
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
You're welcome!
@andresl.6107
@andresl.6107 2 жыл бұрын
The video is very informative, I have a doubt: it is possible that this method can also be used to render different modals for when an API(endpoint) is used, as there is a lot of data that requires a modal.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
I would render the same modal container with different content depending on API response.
@allanimeworld2898
@allanimeworld2898 3 жыл бұрын
Which editor are you using sir and can i download it uaing linux
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 жыл бұрын
Vim. Here is a video about it kzbin.info/www/bejne/j6Ovmqidec12q80
@allanimeworld2898
@allanimeworld2898 3 жыл бұрын
Thank you sir
@allanimeworld2898
@allanimeworld2898 3 жыл бұрын
Sir your words were autocompleting sir which pkugin do i need to install
@RajYadav-yh7vv
@RajYadav-yh7vv 2 жыл бұрын
very slow n poor
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Thanks!
Usequery simplifies API Requests with React Query
12:01
Monsterlessons Academy
Рет қаралды 3,3 М.
Learn React Portal In 12 Minutes By Building A Modal
12:11
Web Dev Simplified
Рет қаралды 239 М.
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 184 МЛН
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 37 МЛН
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 54 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 56 МЛН
Prisma Auth: Complete Beginner's Guide
21:48
Monsterlessons Academy
Рет қаралды 793
React Calculator: Can You Build It Faster Than Me?
23:08
Monsterlessons Academy
Рет қаралды 643
Modal in Next.js & React | Create a Dialog Component
22:57
Dave Gray
Рет қаралды 33 М.
Everything about React Portals in 10 minutes
9:50
Fullstack Simplified
Рет қаралды 12 М.
React Fetching Data: SWR vs. useEffect - Which is Better?
15:40
Monsterlessons Academy
Рет қаралды 1 М.
5 Pro-Level React Do's & Don'ts
30:06
Traversy Media
Рет қаралды 176 М.
Create a Modal With React Portals
13:11
Nikita Dev
Рет қаралды 6 М.
Shadcn UI React Tutorial: Build Stunning UIs in Minutes!
13:01
Monsterlessons Academy
Рет қаралды 3,3 М.
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 184 МЛН