How to build a Stopwatch in React 🔥 | React JS Interview

Опубликовано: 28 Январь 2023
на канале: Akash Ingole
5,101
89

Hey everyone, In this video we will learn how to design Stopwatch in React.
We will use State and Refs 🥳.

When to use State and when to use Ref 🤔 -
When a piece of information is used for rendering, keep it in state
When a piece of information is only needed by event handlers and changing it doesn’t require a re-render, using a ref may be more efficient.

So stay tuned!
Please watch this video till the end and don't forget to subscribe 🤗

Subscribe here 🔗 -
   / @akashingole  

Timestamp ⏰ -
0:00 Introduction
0:35 Coding
8:25 State vs Ref

Link to other videos 🥳-
Airtel Frontend Interview Questions | React and Javascript
   • Airtel Frontend Interview Questions |...  
Search in React using debouncing | useCallback
   • Search in React using debouncing | us...  
Socket.io + React JS Implementation
   • Socket.io + React JS Implementation  
Invert Binary Tree | Mirror Image of a Binary Tree
   • Invert Binary Tree | Mirror Image of ...  

#reactjs #reactjstutorial #stopwatch