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:

Hand holding purple sticky notes for CSS sticky positioning guide.

Troubleshooting CSS sticky positioning

Fix sticky positioning issues in CSS, from missing offsets to overflow conflicts in flex, grid, and container height constraints.

Ibadehin Mojeed
Nov 13, 2024 â‹… 5 min read
Task Scheduling and cron Jobs in Node Using node-cron

Scheduling tasks in Node.js using node-cron

From basic syntax and advanced techniques to practical applications and error handling, here’s how to use node-cron.

Godwin Ekuma
Nov 12, 2024 â‹… 7 min read
Working With The Angular Tree: Flat Vs Nested Trees And More

Working with the Angular tree

The Angular tree view can be hard to get right, but once you understand it, it can be quite a powerful visual representation.

Lewis Cianci
Nov 12, 2024 â‹… 21 min read

Why you should use SWC (and not Babel)

In this post, we’ll compare Babel and SWC based on setup, execution, and speed.

Kasra Khosravi
Nov 12, 2024 â‹… 9 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