Don't use AND operator ANYMORE in react component. This small video explains the deadly problem can a && operator cause in your react application. Along with the solution, what to use instead of an operator in react.
Apart form that we also going to talk about the Short circuit evaluation effect in react and why not use that instead?
0:00 Why not user and operator in React.js
0:53 Why AND operator usually create UI bugs ?
1:50 How AND operator works in React.js?
3:26 What is Short circuit evaluation in react?
5:20 Problem caused by And operator in react.
7:37 Why AND operator causes an error with an undefined value?
9:20 What to use instead of "AND operator" in react ?
9:50 Why use the ternary operator in react?
10:13 Benefits of using the ternary operator in react.
About Revive Coding:
Revive Coding, is a place to learn web development with a practical approach. Breaking complex concepts into simple ones is my motive while creating videos, so that, you learn fast and get your dream job.
About me:
I am vikash singh, Working as a MERN stack and Ruby on Rails Developer. Learning new concepts every day is my motivation and teaching is my hobby.
my youtube handle is @revivecoding
==========
My Guru Manta: THE FASTER YOU FAIL, THE FASTER YOU SUCCEED.
==========
Thanks for SUBSCRIBING "Revive Coding".
Wish You a Happy and Prosperous Life.
Channel Milestone:
100 Subscriber - 20 Oct 2022
110 Subscriber - in progress
▶️ DTube