# Using Path Matching in React Router

DevFeed: [Using Path Matching in React Router](<https://devfeed.tech/articles/using-path-matching-in-react-router-37601.md>)

Original publisher: [Read original article](<https://www.taniarascia.com/path-matching-in-react-router/>)

Author: hello@taniarascia.com

Published: 2022-12-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tania Rascia](<https://devfeed.tech/sources/tania-rascia.md>)

Topics: [React Router](<https://devfeed.tech/topics/react-router.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [react](<https://devfeed.tech/tags/react.md>), [react-router](<https://devfeed.tech/tags/react-router.md>), [router](<https://devfeed.tech/tags/router.md>), [writing](<https://devfeed.tech/tags/writing.md>)

## AI overview

This article explores using path matching in React Router to map route patterns to page titles, while noting that passing titles directly through a route wrapper can be a simpler solution. The examples use React Router v5.

## Source excerpt

Recently on a project I was working on I noticed every page was importing in order to display the unique page title, like this: For an app...