paint-brush
React useRef, forwardRef and Some Problems you May Run Into Working With Themby@serhiirubets
11,443 reads
11,443 reads

React useRef, forwardRef and Some Problems you May Run Into Working With Them

by Serhii Rubets5mMay 22nd, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this article, I want to share with you about React `useRef` and `forwardRef` hooks. This article is not about what are react hooks, when they were created and why we should use them. If you are not familiar with react hooks or with react, you should read about react hooks and play with simple hooks such as `useState` and 'useEffect`. The purpose of useRef` is to keep variables between rerendering react components. But if you change your state, the component, which uses this state will rerender.

Company Mentioned

Mention Thumbnail
featured image - React useRef, forwardRef and Some Problems you May Run Into Working With Them
Serhii Rubets HackerNoon profile picture
Serhii Rubets

Serhii Rubets

@serhiirubets

I'm a Fullstack JS engineer with 10 years of experience. Also, I'm a mentor, teacher, and author of front-end courses.

Learn More
LEARN MORE ABOUT @SERHIIRUBETS'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Serhii Rubets HackerNoon profile picture
Serhii Rubets@serhiirubets
I'm a Fullstack JS engineer with 10 years of experience. Also, I'm a mentor, teacher, and author of front-end courses.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite