A very common error developers run into when building (and specifically refreshing) an app with React Router and Reach Router is 'Cannot GET /url'. In this post we'll look at why that error happens and what to do about it.
React Router v4 introduced a new declarative, component based approach to routing. With that approach came some confusion around nested routes. In this post we'll break down that confusion and you'll learn how to nest routes with React Router.
When building an app with React Router, eventually you'll run into the question of navigating programmatically. Because of the churn that React Router has gone through in the last few years, there are a lot of outdated, and frankly incorrect tutorials out there. The goal of this post is to break down the correct approaches to programmatically navigating with React Router.
Often time when building an app with React Router, you want to have a 'catch all' route which will render if none of the other routes match. In this post, we'll learn how to do just that by breaking down the 'No Match (404)' example from the React Router docs.
URL parameters are a fundamental aspect of React Router and a fundamental aspect of building web applications. In this post, we'll break down the 'URL Parameters' example on the React Router documentation to learn how you to effectively leverage URL parameters in your React app.
Code splitting has gained popularity recently for its ability to allow you to split your app into separate bundles your users can progressively load. In this post we'll take a look at not only what code splitting is and how to do it, but also how to implement it with React Router.
React Router v4 introduces a new dynamic, component based approach to routing. In this post, we'll talk about the philosophies behind React Router and give an introduction to the syntax by breaking down the 'Basic' example on the React Router docs.
Protected routes are an important part of any web application. In this article you'll learn how to create authenticated routes (routes that only certain users can access based on their authentication status) using React Router.
Template literals are like strings on steroids. In this video, we'll look at the main benefits of template literals including string interpolation and multiline strings.