Mahdi TaalaMaking the Right Choice: When to Use useState or useReducer in ReactWhen working with React, managing state is a crucial aspect of creating dynamic and interactive user interfaces. The useState and…Apr 9, 20231Apr 9, 20231
Mahdi Taala2 Ways to update complex data in useStateWhen working with React’s useState hook, updating state objects is a common task. Fortunately, there are two ways to update the state…Mar 24, 2023Mar 24, 2023
Mahdi TaalaOptimize React Context Step-by-step in 4 examplesWhen using React components in combination with Context, you can optimize rendering by wrapping your React component with React.memo right…Mar 19, 2023Mar 19, 2023