Open Jeff-Duke opened 7 years ago
In app/components/App/App.js the App component can be refactored into a pure function instead of a react class. Something along the lines of:
App
const App = () => { <section> <Router> <Header /> ...some routes here <Footer /> </Router> </section> }
Also check out the <Switch> component for react router: https://reacttraining.com/react-router/web/api/Switch
<Switch>
In app/components/App/App.js the
App
component can be refactored into a pure function instead of a react class.Something along the lines of:
Also check out the
<Switch>
component for react router: https://reacttraining.com/react-router/web/api/Switch