Handling API data in React - all the tools you need
Fetching data in React is easy. fetch is all you need, right? But what about loading state? Well, just use useState to keep track of it. And error state? Uhm, another useState? And...
Read moreFetching data in React is easy. fetch is all you need, right? But what about loading state? Well, just use useState to keep track of it. And error state? Uhm, another useState? And...
Read moreExplore the creation of tinydeskdb.com, a small search engine for NPR's Tiny Desk Concerts. Discover how I gathered data, designed the interface, and implemented features to help fans...
Read moreWeb scraping is a beautiful thing. It allows you to extract data from websites that don't provide an API. Use it to monitor prices, collect data for research, aggregate news from your...
Read moreI've spent a good amount of months developing an Azure DevOps extension for a customer, and I'd like to share my learnings so you can have an easy start.
Read moreHere's a short tutorial on how to implement saving custom content to the file system of an end user. This not only gives us the opportunity to save the file once, but by working in a...
Read moreWhen running npm run dev, the project runs locally and everything works fine. The only thing that doesn't work out of the box, are MUI sourcemaps. For those of you who don't know,...
Read moreIn React, the way of communicating between parent and child components is usually done in 2 ways; the parent sends `props` to the child and the child can send data back to the parent...
Read moreI recently ran into an issue when developing an Azure DevOps extension. I was using the azure-devops-extension-sdk package get data from the Azure DevOps project I was running the...
Read moreView on GitHub Imagine this, you spent day and night working on the perfect web application. You worked together with the backend devs to craft the smoothest and most stable GraphQL...
Read moreI created a repository where I show how to automatically generate Typescript types from a GraphQL schema using Nx. This works both while running the 'serve' and the 'build' commands...
Read moreHow to create and deploy a Node.js Telegram bot as an Azure Function App using GitHub Actions, and how to develop the bot in a local development environment...
Read moreNodeJS mock server: JavaScript client: --- If you've ever worked with APIs or backend developers these scenarios might sound familiar: - My front-end doesn't work because an API...
Read moreHow to cache your client-side assets using the Service Worker when working with a server-side rendered website...
Read moreA simple React+Typescript+Redux starter project including a neat folder structure, fetching data and global state management...
Read moreI recently stumbled upon an issue I had to fix. I had created a React hook with a `useEffect` function in which I executed a fetch call. The data was then put into a Redux storage. All...
Read moreEnd-to-end tests are useful for simulating and validating a real user scenario. It is even more useful if you can automate these tests in a continuous integration service like Travis...
Read moreThere are several different ways of React component testing, but I chose for this particular combination because `create-react-app` uses Jest as their default test...
Read moreHave you ever come across a situation where you have a deeply nested state and want you mutate a single property on the deepest level? You could do that using destructuring, but that...
Read moreCaching API requests is something that's often forgotten, even though it can possibly improve performance and reduce use of resources. The implementation can be really simple, as I...
Read moreWhat I wanted to achieve was a custom select widget, filled with dynamic values, thus not set in the config.yml. The default select widget of the Netlify CMS is very useful though,...
Read more