1.0.0 • Published 3 years ago

route-with-title v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

route-with-title

LicenseVersionDownloads

Installation

Using npm:

$ npm install --save route-with-title

Then with a module bundler like webpack, use as you would anything else:

// using ES6 modules
import { Route } from "route-with-title";

// using CommonJS modules
const Route = require("route-with-title").Route;

Example

You can use theRoutecomponent as follows:

// With static title:
<Route title="Your Title" exact path="/your-page">
	<YourPageComponent/>
</Route>

// With dynamic title:
<Route title="Your Title {your_param}" exact path="/your-page/:your_param">
	<YourPageComponent/>
</Route>

You can use theuseTitlehook as follows:

const YourPageComponent = () => {
	useTitle("Your Page Title");

	return (
		<div>
			...
		</div>
	);
}

Issues

If you find a bug, please file an issue on our issue tracker on GitHub.

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago