2023-08-18
2772
#react
Gaurav Singhal
32601
Aug 18, 2023 â‹… 9 min read

Using Hooks with React Router

Gaurav Singhal Gaurav is a data scientist with a strong background in computer science and mathematics. As a developer, he works with Python, Java, Django, HTML, Struts, Hibernate, Vaadin, web scraping, Angular, and React.

Recent posts:

what's new in next js 15.4

Next.js 15.4 is here: What’s new and what to expect

Next.js 15.4 is here, and it’s more than just a typical update. This version marks a major milestone for the framework and its growing ecosystem.

Abiola Farounbi
Jul 29, 2025 â‹… 6 min read
React logo over a dark blue abstract background with glowing network nodes and connections

Build interactive React UIs for LLM outputs using llm-ui

If you’re building an LLM-powered application, llm-ui is a powerful tool to help you add structure, flexibility, and polish to your AI interfaces.

Emmanuel John
Jul 29, 2025 â‹… 9 min read
How I Debug Faster With These Chrome DevTools Console Features

How I debug faster with these Chrome DevTools Console features

Improve the old-fashioned debugging JavaScript workflow by effectively using some lesser-known Chrome DevTools console features.

Shalitha Suranga
Jul 28, 2025 â‹… 9 min read
Catch Frontend Issues Before Users Using Chaos Engineering

Catch frontend issues before users using chaos engineering

This article covers how frontend chaos engineering helps catch UI and UX issues before users experience them using tools like gremlins.js.

Muhammed Ali
Jul 25, 2025 â‹… 5 min read
View all posts

2 Replies to "Using Hooks with React Router"

  1. I was following this as a codealong, start is a bit confusing maybe add that the changes are made in App.js.
    But I get a compile error at the useEffect() part, until I realized I still had to import it from react.
    I’m just 2 weeks in coding in React, so guess for a beginner they will need some more guidance

  2. Did they change something in the ‘react-router-dom’ npm? because it says Switch is not exported from ‘react-router-dom’

Leave a Reply