Skip to content

Instantly share code, notes, and snippets.

@Saro404
Forked from superhighfives/App.js
Created October 10, 2019 09:04
Show Gist options
  • Save Saro404/b0baab41e9685cb627a273d99186403f to your computer and use it in GitHub Desktop.
Save Saro404/b0baab41e9685cb627a273d99186403f to your computer and use it in GitHub Desktop.
An example of react-helmet with create-react-app
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're doing amazing sweetie" />
<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