Onur Taşkıran LogoOnur Taskiran's Personal BlogOnur Taskiran Blog
HomeAboutProjectsServicesContact
HomeAboutProjectsServicesContact
Onur Taşkıran LogoOnur Taskiran's Personal BlogOnur Taskiran Blog
HomeAboutProjectsServicesContact
HomeAboutProjectsServicesContact

Posts tagged with "hooks"

React useTransition Hook

React useTransition Hook

14 November 20233 min readWeb Programming

React is fast by default. So the useTransition hook has specific use cases and is probably not something you will use in all your applications. useTransition hook is a hook available in React 18 and above and is used to manage asynchronous operations. This hook is designed to provide better performance and faster user experience...

#React#useTransition Hook#Performance Optimization+4 more
React useMemo Hook

React useMemo Hook

29 September 20234 min readWeb Programming

React's useMemo hook is a hook used to optimize computationally expensive operations. The way useMemo works is very similar to use callback. The difference between useCallback and use memo is that it stores the value we get back from the function. So UseCallback is used to memorize a function...

#React#useMemo Hook#Performance Optimization+3 more
React UseCallback Hook

React UseCallback Hook

24 September 20233 min readWeb Programming

In React, we may sometimes experience slowdown problems due to unnecessary component renderings. There are many ways to solve these problems in React. We do not use UseCallback very often in our projects, but when we do, our application is much better in terms of performance.

#React#UseCallback Hook#Performance Optimization+3 more
React useReducer Hook

React useReducer Hook

07 September 20236 min readWeb Programming

useReducer is a state management method in React, just like useState. It provides a structure and set of rules that lead to fewer errors and easier code management. We use it to handle more complex state logic and to perform state changes in a more structured way compared to useState.

#React#useReducer Hook#State Management+3 more
React UseRef Hook

React UseRef Hook

08 August 20232 min readWeb Programming

Usually used to directly access a DOM element. We can make changes like we do in Valillajs. We can also be used to store a mutable value that does not cause rework when Updated. that is, changes made to the current value of UseRef will not re-render. UseState triggers the component to be rendered again...

#React#useRef Hook#DOM Manipulation+3 more
Using useState Hook in React

Using useState Hook in React

03 May 20232 min readWeb Programming

useState is a React Hook that allows us to access state in function components. State refers to the data or properties that should be tracked in our project. useState allows us to use React's state property without writing a class. It has been included in the react library since v16.8 (in 2019). Before it was included in the react library...

#React#useState Hook#State Management+3 more