paint-brush
Reducing Bugs in React Codebase by understanding anti-patternsby@darshitac
2,373 reads
2,373 reads

Reducing Bugs in React Codebase by understanding anti-patterns

by Darshita Chaturvedi12mJune 15th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this article, we discussed that using props or context as initial state and 'Destroy and Recreate' are anti-patterns while using internal state in JSX and props as a dependency in useMemo are good patterns. We also learned that we should be cautious when we are using hooks without a dependency array and nesting for arranging React components.

People Mentioned

Mention Thumbnail

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Reducing Bugs in React Codebase by understanding anti-patterns
Darshita Chaturvedi HackerNoon profile picture
Darshita Chaturvedi

Darshita Chaturvedi

@darshitac

Co-Founder & CEO, Atri Labs — Creating a new full-stack web development framework. Prev: MIT, IIT, BlackRock

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

About Author

Darshita Chaturvedi HackerNoon profile picture
Darshita Chaturvedi@darshitac
Co-Founder & CEO, Atri Labs — Creating a new full-stack web development framework. Prev: MIT, IIT, BlackRock

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