Skip to content

Commit 7304fde

Browse files
committed
Add ref interview questions
1 parent 5af2246 commit 7304fde

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@
302302
|286| [Is it possible to use react without JSX?](#is-it-possible-to-use-react-without-jsx)|
303303
|287| [What is diffing algorithm?](#what-is-diffing-algorithm)|
304304
|288| [What are the rules covered by diffing algorithm?](#what-are-the-rules-covered-by-diffing-algorithm)|
305+
|289| [When do you need to use refs?](#when-do-you-need-to-use-refs)|
305306

306307
## Core React
307308

@@ -4867,5 +4868,10 @@
48674868
<li key="2016">Villanova</li>
48684869
</ul>
48694870
```
4871+
289. ### When do you need to use refs?
4872+
There are few use cases to go for refs
4873+
1. Managing focus, text selection, or media playback.
4874+
2. Triggering imperative animations.
4875+
3. Integrating with third-party DOM libraries.
48704876
48714877

0 commit comments

Comments
 (0)