ugneadomaityte.hashnode.devuseRef 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...Jun 2, 2024·2 min read
ugneadomaityte.hashnode.devuseCallback 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. ...May 19, 2024·2 min read
ugneadomaityte.hashnode.devState 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...Apr 22, 2024·2 min read
ugneadomaityte.hashnode.devUnderstanding 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...Apr 15, 2024·2 min read
ugneadomaityte.hashnode.devJavaScript 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...Mar 31, 2024·2 min read