UAUgne Adomaityteinugneadomaityte.hashnode.dev·Jun 2, 2024 · 2 min readuseRef Hook in ReactReact has a really useful hook called useRef. In some ways, it is similar to the useState hook because it can be used for tracking values. However, useRef is different in that it doesn't cause re-renders like useState. useRef can be used for other ca...00
UAUgne Adomaityteinugneadomaityte.hashnode.dev·May 19, 2024 · 2 min readuseCallback vs. useMemo in ReactReact offers plenty of hooks for various use cases. useMemo and useCallback are widely used hooks in the React community to solve performance issues. While they might seem similar, it's crucial to understand the key differences in how they function. ...00
UAUgne Adomaityteinugneadomaityte.hashnode.dev·Apr 22, 2024 · 2 min readState Management in React with useReducerWhen dealing with complex state logic in components, it can get quite messy when using useState hook, so it’s not the best solution to use it in cases like these. useReducer is a much better tool to deal with states in complex components, it is a str...00
UAUgne Adomaityteinugneadomaityte.hashnode.dev·Apr 15, 2024 · 2 min readUnderstanding async/await in JavaScriptIn the landscape of modern JavaScript, managing asynchronous operations has evolved from callback functions and promises to a more elegant syntax known as async/await. Introduced in ECMAScript 2017, this syntactic sugar built atop promises has revolu...00
UAUgne Adomaityteinugneadomaityte.hashnode.dev·Mar 31, 2024 · 2 min readJavaScript Promises ExplainedJavaScript promises is a relatively new feature that has been introduced in ECMAScript 2015 (ES6). Since then promises have become popular and used widely by developers. The reason for this popularity is mainly because promises offer a more robust an...00