Skip to content

Commit

Permalink
feat(helmet): apply react-helmet on client-side render
Browse files Browse the repository at this point in the history
  • Loading branch information
tagraha committed Mar 10, 2018
1 parent 5935d4b commit 3048d6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shared/home/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import React, { Component } from "react";
import { Link } from "react-router-dom";
import pure from 'recompose/pure';
import Helmet from 'react-helmet';
import "./index.css";

class Home extends Component {
render() {
return (
<div className="row">
<Helmet
title="Welcome to our Homepage"
/>
<div className="column">
<p className="selected">About</p>
<p>
Expand Down
4 changes: 4 additions & 0 deletions src/shared/repo/RepoList.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import React, { Component } from "react";
import { Link } from "react-router-dom";
import Helmet from 'react-helmet';
import "./RepoList.css";

export default function RepoList({ repos }) {
return (
<div className="repolist">
<Helmet
title="Async example"
/>
<Link to="/">back to home</Link>
<h1>
Async page example
Expand Down

0 comments on commit 3048d6e

Please sign in to comment.