Im just suggesting here (im new to react)
but … this.setState({currentView}) should this not be this.setState({currentView: currentView}) at the moment it looks like your just naming what you want setState to change but not passing what you want it to change too
Also this line confuses me … campers={this.state[this.state.currentView]} … why is this not campers={this.state.currentView} … (As i said im pretty new to react so this could be fine … just looks off to me)
Here im persuming you want to go to a different section but you have a click handler to change state of currentView … so im not sure where the a href is meant to take you
It has an a tag because I kept trying different things that I found online to get this to work.
About the this.setState() that does something to rerender the components, so that is in fact what I want to do. I have this working at the moment, I just need to clean up the page with css and sort the recent array.