Created
February 1, 2017 17:35
-
-
Save superhighfives/27e8548abe27684070df41ac09479a43 to your computer and use it in GitHub Desktop.
An example of react-helmet with create-react-app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Helmet from 'react-helmet'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
<Helmet title="You Are Doing Great" /> | |
<div className="App-header"> | |
<img src={logo} className="App-logo" alt="logo" /> | |
<h2>Welcome to React</h2> | |
</div> | |
<p className="App-intro"> | |
To get started, edit <code>src/App.js</code> and save to reload. | |
</p> | |
</div> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry https://giphy.com/gifs/keeping-up-with-the-kardashians-kris-jenner-l3JDFJncJHteKIYzm