Manage global states with Context API and useContextHave you ever heard this? "When we change the way we communicate, we'll change society." Clay Shriky We all know that human communication 🗣 is vital to our society. The process of sharing thoughts, ideas, feelings, or stories has been and still is...2DJan 12, 2021 · 13 min readernestoangulo.hashnode.dev
Manage complex states with useReducerWhen you started learning React, 🧠 you surely got to know useState for managing the state of your functional components. ⚛️ But did you know that there exists another hook called useReducer that does the same thing? 😱 Hi! I'm Ernesto, and in this p...2PDec 14, 2020 · 9 min readernestoangulo.hashnode.dev
Reducers in JavaScript explainedWe all know that state management 🧠 in our applications is essential, and a core concept to understand it is the reducer 🧬. Every JavaScript framework, React, Vue, and Angular use reducers for state management. Therefore, learning what a reducer is...Dec 6, 2020 · 7 min readernestoangulo.hashnode.dev
Still not testing your React apps?Imagine you want to travel to France. ✈ Would you travel in a plane you know is untested? No right? It would be scary. 😨 What if that plane has engine problems or some others that may affect its functioning and cause an accident. 🚧 Testing is an im...Dec 1, 2020 · 8 min readernestoangulo.hashnode.dev
Boost your React apps with React.memo, useCallback, and useMemoOne of the many reasons we love 💙 React is because it is really fast. React does tons of work under the hood to guarantee everything renders efficiently. Hence, in most cases, performance is not something we need to worry about. However, we can run ...1ANov 25, 2020 · 7 min readernestoangulo.hashnode.dev