paint-brush
React Hooks: Performance Pitfalls And How To Easily Avoid Themby@ilyamkin
9,041 reads
9,041 reads

React Hooks: Performance Pitfalls And How To Easily Avoid Them

by Ilya Lyamkin4mOctober 19th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

React Hooks allows us to reuse stateful logic between components without writing a class. Most of the issues with Hooks come from unnecessary renders of your components. Don’t try to keep state logic from components and helps you to avoid bugs. The Profiler tab in React shows how many re-renders you expect from Hooks. It’s troublesome to find these issues before it causes performance issues, so you have to use specific tools to detect them beforehand, such as the Profiler.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - React Hooks: Performance Pitfalls And How To Easily Avoid Them
Ilya Lyamkin HackerNoon profile picture
Ilya Lyamkin

Ilya Lyamkin

@ilyamkin

Senior Engineer @ Spotify

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

About Author

Ilya Lyamkin HackerNoon profile picture
Ilya Lyamkin@ilyamkin
Senior Engineer @ Spotify

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
Also published here