Skip to content

Commit

Permalink
feat(Header): use NavLink
Browse files Browse the repository at this point in the history
  • Loading branch information
aneurysmjs committed Dec 26, 2017
1 parent b5843cd commit cfbe5ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import React from 'react';
import { NavLink } from 'react-router';
import { NavLink } from 'react-router-dom';
import { string } from 'prop-types';

const Header = () => (
<div className="container">
<nav className="navbar navbar-expand-lg navbar-light bg-light">
<a className="navbar-brand" href="#">React Movies</a>
<NavLink
to='/'
className="navbar-brand">
React Movies
</NavLink>
</nav>
</div>
);
Expand Down

0 comments on commit cfbe5ee

Please sign in to comment.