How to Enforce Type Safety in FormData with TypeScriptWhen working with the FormData interface in JavaScript, where data is appended as key/value pairs, there's no built-in way to enforce type safety on the keys you append. This can lead to typos, missing keys, and unexpected runtime errors. But in Type...Mar 10, 2025 · 5 min readfreecodecamp.org
How to Extract an Error Object from a Blob API Response in JavaScriptI encountered an issue when I made a GET request in my React project which was supposed to return a file I could download. For the file to download properly, I had to make the response type a blob. But if an error occurred when the server returns a ...Mar 29, 2024 · 3 min readfreecodecamp.org
How to Build a Stepper Component in ReactI was working on a React project recently, and I realized that there were so many UI components that I had to build to get things done quickly. So I began to explore a lot of UI libraries like Material UI or Chakra UI. Then I started wondering why I ...Jan 10, 2024 · 7 min readfreecodecamp.org
How to Pass Data Across Routes with React RouterURL parameters are a good way of passing data from page to page in a React application. But what if you don't want that data to show in your URL? Here's a great way to achieve that using the useLocation hook that React Router provides. If you're new ...Aug 27, 2023 · 3 min readolabisi.hashnode.dev