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:

profit center vs. cost center: How company structure affects engineering

Profit center vs. cost center: How company structure affects engineering

Examine the difference between profit vs. cost center organizations, and the pros and cons these bring for the engineering team.

Marie Starck
May 15, 2025 â‹… 4 min read
How to pass a TypeScript function as a parameter

How to pass a TypeScript function as a parameter

Explore how to pass functions and structured objects as parameters in TypeScript, including use cases, syntax, and practical scenarios.

Kealan Parr
May 15, 2025 â‹… 10 min read
API Docs Made Easy With Docusaurus

Create fast, modern API docs using Docusaurus

Why API documentation matters, recent trends in the space, and how to build great docs from scratch using Docusaurus, step by step.

Frank Joseph
May 15, 2025 â‹… 6 min read
A checklist for mastering Expo SDK 53

A checklist for mastering Expo SDK 53

Get up to speed on Expo SDK 53, which brings with it a wealth of new and improved updates for the React Native ecosystem.

Andrew Baisden
May 15, 2025 â‹… 17 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