Preventing memory leak by handling errors and request cancels separately in Axios

I am currently working on a custom hook in a React application. The hook simply makes an API request to a third party API and fetches some data. My Axios call updates the state of the hook with some data or an error message, based on the response from the API call. I encountered a problem in the implementation and it took me a while to figure out. In this post, I am sharing my solution.

Preventing memory leak by handling errors and request cancellations separately in Axiosdevamı...

I encounter many developers who have learned the class components the first time they were learning React or have been using the class components for a long time, asking questions about converting the class components to functional components.

Converting class components to functional components (basic structure, state, & life-cycle methods)devamı...

React Step Builder

Recently, I was working on adding TypeScript support to my project along with some changes to the API of the library. I would like to mention those changes in this post for those who are familiar with the previous version and would like to upgrade to the TypeScript version. If you’ve never heard of this library, you are encouraged to check out the docs on the GitHub Readme file.

Multi-step forms with React & TypeScriptdevamı...