in React Router Dom 6 and above Default active class By default, an active class is added to a component when it is active so you can use CSS to style it.
can't tell you how much you are helping the new learner with every details as a beginner.. love your video lectures.. and you know what is the most amazing fact even if i am doing a paid course but not every details is delivered as you described. thanks a lot from my heart.
for those who can't see the changes made by activeClassName, actually The NavLink API changed a bit in RRDv6, there is no longer an activeClassName prop. you can convert from this : Contact Us to This : { return isActive ? 'active_class' : ''; }} to='/contact' > Contact Us I hope this might help you
Ek Badhiya si series Android Pe bhi bana dijiye bro....Aur agar ek serch banane ke liye jo algorithm use hote hai uske basic sikhayenge to badhiya rahenga....
js is for java script, jsx is for react basically. If you are using VS code, .jsx and .js are considered same. We can use javascript in .html files using script tag. And on the other hand, React is a combination of javascript and html. So it is considered same. Hope it helps
@@jagwindersingh836 Isiliye likha because a tag and Navlink tag link ke liye hi use hote hai na tabhi. for ex : Home and... Home So to style the a tag or NavLink tag, we use a.{className} { furthor stylings } a.{className} tells css file that this class is connected to the any link tag. Hope it helps.
Hlo sir...sir plse make a playlist on SEO...how we can optimize our website to the Google first page....and first rank....???plse sir that thing is important in web development...
in React Router Dom 6 and above
Default active class
By default, an active class is added to a component when it is active so you can use CSS to style it.
#sidebar a.active {
color: red;
}
Thanks alot!
Yahi video ka to wait thaa💓Dil ki baat sun liye sir
Thnku Bro 😀
can't tell you how much you are helping the new learner with every details as a beginner.. love your video lectures.. and you know what is the most amazing fact even if i am doing a paid course but not every details is delivered as you described. thanks a lot from my heart.
Have u written source code
Thanks sir... Yeh vdo maine ek sal pehle apki channel me dekh liya tha
Nice..
The way of step by step is really appreciated thanks a lot
better than most of react courses , and plus in hindi , waahhhhhh , maaja aagaya
Have u written source code
@@techhelper9054 kis chizz ka?
@@Miles-co5xm are bhai react js ke lectures ka
@@techhelper9054 na bhai
@@Miles-co5xm then how u revise..means how u remember all those things
You're doing a great job, Sir. Thanks a lot.
You're explaining the "why" behind every concept which is great. Thanks
Have u written source code
Thank you Thapa I am the beginner in React JS and your Video help me a lot..... You are doing great job.
Have u written source code
kya mast padhate ho yaar tum , bohot badhiya guru , lage raho . 1m subs soon
Have u written source code
Coding best teacher codewithharry
Thanks bruh your videos help me a lot, very fine teaching skill step by step i know it consumes lot of your time but thanks again keep it up!
Have u written source code
Hi sir, Can you please explain me why you have written a.active_class in index.css
for those who can't see the changes made by activeClassName, actually The NavLink API changed a bit in RRDv6, there is no longer an activeClassName prop.
you can convert from this :
Contact Us
to This :
{
return isActive ? 'active_class' : '';
}}
to='/contact'
>
Contact Us
I hope this might help you
thank you so much but how did you come to know about this?
@@VandanaSharma-ec6zl Welcome, you can refer to this beautiful article on react router V6, for further exploration
i hope this will help you
@@rajkumardongre3085 sure thank you.
Superb Awesome 😈✌️💥💎🇮🇳🔥
Making component files capital is not a must it can work with lowercase too
only the component your exporting has to be capital
thanku bhai you are great , your way of teaching was very nice loved it
Have u written source code
This video is second time in your playlist
thank u bro you made me my day Happy...
Have u written source code
From 1 st to this video i watch all in last 16 hours and that's very interesting
Have u written source code
Really Awesome. Respect from Bangladesh
Have u written source code
One way to fix the “‘Switch’ is not exported from ‘react-router-dom'” error is to replace with
wuhuu
One way to fix the “‘Switch’ is not exported from ‘react-router-dom'” error is to replace with
Thanks and Absolutly help full
Best tutorial in React :)
Ek Badhiya si series Android Pe bhi bana dijiye bro....Aur agar ek serch banane ke liye jo algorithm use hote hai uske basic sikhayenge to badhiya rahenga....
Best channel !! Thanks alot!
Amazing yaar. 💜💜
how text-decoration property added in navlink elements. please explain. as per my thought it should applied on only a tag.
Then use a tag in navlink component
link work as anchor simply use
a.active_class {
text-decoration: none;
}
If it works like anchor then we know anchor is a tag so y cant we simple write a {
//css
}
Thank you bro 😊
Have u written source code
Brother please make a video on dynamic routing
Bro make a toturial series on ionic5 plz 🙏🙏
Hello sir I try this.
When I clicked link tag url was changed but component not view. I have view only home component how to solve this problem
Do you get solution
Capital hona hi chaiye Main nahi jaanta capital hona hi chaiye 😀😀😀👍👍
why you made jsx files and not js? what will be the difference if we make js ?
Please make a video on 'react-hook-form' module.
Bro Please i am following u from the beginning.So after react please make us learn about react native.
Bhai app apni morden website ko responsive bana na sikhao please🙏🙏🙏
Best teacher ❤️
sir mai 1000 bar like bhejna chahta hu but youtube ko bolo facility de
Very very THANKS Sir
React-router-dom@6 not support switch and more many things like activeclassname
what is the deference between " .jsx " file and " .js " file
js is for java script, jsx is for react basically. If you are using VS code, .jsx and .js are considered same. We can use javascript in .html files using script tag. And on the other hand, React is a combination of javascript and html. So it is considered same. Hope it helps
Boom guys 🎉🎉
you are great sir
in css why a.activeclass{ } i did not get it.
Please make a video on how to make navbar for desktop view with ionic react
Aapne Css file Mai jab CSS add Kari active Ki toh usme a.active_class Kyu likha
Main bhi yahi soch raha hu
@@jagwindersingh836 Isiliye likha because a tag and Navlink tag link ke liye hi use hote hai na tabhi. for ex :
Home and...
Home
So to style the a tag or NavLink tag, we use a.{className} {
furthor stylings
}
a.{className} tells css file that this class is connected to the any link tag.
Hope it helps.
@@nitroo7375 but I am using the same code for styling the link i.e a.active_class and it is not working for me what should I do?☹️
@@manilavaswani154 apne css file link kari hai?
@@nitroo7375 but it is not working
Hi Vinod, How can we make dropdown menus in react
Do you got the solution?
@LOVEDEEP Singh yup but we can't use Link or anchor tag in that
Firebase and react tutorial plz....
Sir plz make a video on latest version of react js and changes on react js like switch and router and many more plz sir make video
Awesome 👍💯
nice
thank you so much sir
make a video on sidebar menu with hamburger menu...
THANK YOU SO MUCH SIR
Have u written source code
please work with bootstrap
So my question is how many % react is done ?
broo.. need help. can you create dynamic navbar react turorial?? please
great work
Sir Electronjs par tutorial banawo please
How can I create a dropdown in this navbar? I tried but getting errors
Thanks a ton man!
Have u written source code
activeClassName and exact attributes is not workings how to fix this?
sir i waiting Full Website using React
In react, we are using a Link rather than anchor tag
Bhai useReducer par bhi bana do video
sir make more videos on Landing Page using HTML and CSS please 🙏🙏
Thank You sir
Hlo sir...sir plse make a playlist on SEO...how we can optimize our website to the Google first page....and first rank....???plse sir that thing is important in web development...
vehla baitha oh tere gal suna
video number 61 & 62 from react playlist are the same video.
sir apny css ki file a.active_class q use kiya ha a tag to humnay use he ni kiya
index.js m import kia h
Thank you so much!! :)
Have u written source code
Sir ek proper responsive navbar btao in react
sir export switch krke error arha hai kuch pls hellp kro
THANKS
How can I create drop-down menu in navbar using react and react Router? Can you plz make a video on this
Sir polling system bnao ajax with php SQL . Create poll and show result.
Bro ,can you cover Material Ui along with React !
He already cover the material ui please check his previous react video
Bhai aapne ye video do baar add kardi hai react ki playlist me, Please remove that. I love your videos.
Great Menu💗
Sir please snake game bana do pure javascript me please or canvas ki playlist bhi bana do please 🙏🙏
great sir
Navlink after active underline problem
Sir your videos was 100 plus but its 63 where other videos
why not u use Class components while making video.. till now i can see only Functional Components. .. any specific reason
How to use php in reactjs
In my case home (root) link always show active even after using exact. So provide the solution of this problem.
you have to use exact keyword in every Link tag hope your problem will be resolved
Love it Bro
9:45
How to pass parameters via router?
Command for install react router dom?
npm install --save react-router-dom
I am trying to make a website by my own I want to contact you regarding some queries regarding that cn I????
😍😍😍😍😍😍😍😍
BOom 🥵 awesome🔥
Hi Vinod, you have added the same video two times please remove from playlist the same video.
sir plzz tell how to get source code
Thank u
Thanku sir
Same video
#firstviewer
Error: Target container is not a DOM element. giving Error
Because is target not Target
This Video is twice so please delete it from this playlist.
BTW thanks sir you are doing great.
Landing page bnana sikhao react se
👏🏻✌🏻👍🏻🙏🏻💯