Usually machine coding rounds are in Vanilla JS sir. In ReactJS, it will be easier to make it though. I request you to make MC round videos in Vanilla JS using modular pattern or OOPS pattern.
the purpose of useRef is to persist the value of variable in multiple re-render cycles , but a normal variable will be declared again in memory on each re-render causing memory issues . So using useRef is a good practice. @@nitingupta1650 @Ravi_Goyal
Usually machine coding rounds are in Vanilla JS sir. In ReactJS, it will be easier to make it though. I request you to make MC round videos in Vanilla JS using modular pattern or OOPS pattern.
your website is a gem. Keep making more of such content🌟
@JS Cafe..please make series of most asked DSA questions to crack FrontEnd React interview
thank you sir ,your channel is gold🙏.
Bro how did you get so much familiar with these things. Also will they allow us to use Google in between the machine coding round.
if you use normal variable instead of use ref then also it will work. why useRef🤔
+1
the purpose of useRef is to persist the value of variable in multiple re-render cycles , but a normal variable will be declared again in memory on each re-render causing memory issues . So using useRef is a good practice. @@nitingupta1650 @Ravi_Goyal