diff --git a/src/components/App.js b/src/components/App.js
index 4f30351..22765b5 100644
--- a/src/components/App.js
+++ b/src/components/App.js
@@ -5,6 +5,7 @@ import PostList from './PostList';
function App() {
return (
+ <>
@@ -12,6 +13,7 @@ function App() {
+ >
);
}
diff --git a/src/components/NavBar.js b/src/components/NavBar.js
index 8ad3f0b..82a6bbe 100644
--- a/src/components/NavBar.js
+++ b/src/components/NavBar.js
@@ -1,17 +1,18 @@
import React, { Component } from 'react';
-import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
-
-import PostList from './PostList';
+import { Link } from 'react-router-dom';
class NavBar extends Component {
render() {
+ let classes= 'item';
+ if (this.props.isActive) {
+ classes += ' active';
+ }
return (
-
-
-
Home
-
Users
-
Posts
-
About
+
+ sudoscientist:~#
+ Users
+ Posts
+ About
);
}