From a823e1bdeaeb3f99ead716f3dd0378751c628f7d Mon Sep 17 00:00:00 2001 From: David Beitey Date: Mon, 19 Feb 2018 02:31:33 +0000 Subject: [PATCH] Add DocumentTitle import to example This demonstrates how to import the component. It's easy enough to look up or even guess, but this avoids that ambiguity. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6694be4..853ebb8 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ Dependencies: React >= 0.13.0 Assuming you use something like [react-router](https://github.com/rackt/react-router): ```javascript +import DocumentTitle from 'react-document-title' + function App() { // Use "My Web App" if no child overrides this return (