Best practices for using useEffect in React
If you’re just getting started with useEffect, focus on understanding its basic behaviors—when it runs, how to handle dependencies, and how to clean up effects. For more experienced developers, consider diving into advanced patterns like debouncing, optimizing for performance, or debugging re-renders.
By Em Ha Tuan
11/25/2024
React CLI Tools: Making React Development Easier.
CLI tools have emerged as the shining light after the storm. They save you a ton of time and effort in your development journey. Think of them as your trusty sidekick, automating the boring stuff so you can focus on what truly matters—building awesome apps or tackling those pesky bugs.
11/21/2024
Do not mirror your props as a state in React
Sometimes, we misunderstand the true meaning of props and state, which can lead to unexpected bugs that are difficult to track down as the application grows.
10/21/2024
How can we define a component in React?
In this article, we’ll explore the basic steps involved in defining a component in React, focusing on managing states, handling events, and optimizing performance.
10/19/2024
Higher-Order Components (HOCs) in React
In React, code reuse and separation of concerns are essential for building scalable and maintainable applications. One powerful pattern for achieving this is Higher-Order Components (HOCs). This guide will explore how HOCs solve common issues in React applications, compare them to modern alternatives like hooks, and help you understand when to use each pattern.
10/13/2024
The Compound Component Pattern in React
When building complex UIs in React, you often encounter situations where a parent component needs to manage the state, while its children (subcomponents) need to communicate with each other and the parent in a seamless, flexible way. A great solution fo this is the Compound Component Pattern.
I’m a dedicated and self-motivated Software Engineer with a passion for cutting-edge technologies. Over the past six years, starting at the age of 18, I have honed my skills through self-directed learning and professional experience in the industry.
Home
About me
My blogs