From 2446ec7f95009c0ac2342c8f827ac0046fcf79a7 Mon Sep 17 00:00:00 2001 From: Nick Pegg Date: Wed, 11 Oct 2017 20:30:34 -0700 Subject: [PATCH] Replace static bullshit tags with bullshit tags from the state --- src/Nav.js | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/Nav.js b/src/Nav.js index 049642f..fd38ee2 100644 --- a/src/Nav.js +++ b/src/Nav.js @@ -66,15 +66,30 @@ class NavList extends Component { } class TagNav extends Component { + constructor (props) { + super(props); + + this.state = { + topTags: [ + 'Tag 1', + 'Tag 2', + 'Really long tag', + 'Really really really long tag', + 'Another tag', + ], + } + } + + topTags () { + } + render() { // TODO: Populate these tags from the top tags in the post let tags = ( );