React Router v6 Code Posted

Chapter 12 covers how to do Routing in React using React Router v5. In the time since the book came out, React Router v6 has been released, which includes some changes to how it’s used.

I’m also working on writing a version of Chapter 12 that covers React Router 6. I’ll post that to the book’s website when it’s finished.

All the code in the book still works, as long as you use React Router v5. However, if you’d like see how the examples in Chapter 12 are written in the latest version of React Router, I’ve converted them and put them in the repository here:

As always, let me know if you have any questions!

Leave a Reply

Your email address will not be published. Required fields are marked *