Open nayyirjutha opened 5 years ago
You are importing the Header component in every page when you can import it once in your App.js file and render it outside the <Switch> component. This: `
App.js
<Switch>
</div>`
Will then become: `
<Switch> <Route path="/Rinkeby" component={Rinkeby} /> <Route path="/Kovan" component={Kovan} /> <Route component={Page404} /> </Switch> </div>`
and you will no longer need to render/import the <Header/> component in any other file.
<Header/>
https://github.com/JesseAbram/GBC_Class_Bridge/blob/39d6e30189c67043ef87d011464d559721e3a97d/front-end/src/App.js#L23
Thanks, we'll get that fixed before for the next release!
You are importing the Header component in every page when you can import it once in your
App.js
file and render it outside the<Switch>
component. This: `Will then become: `
and you will no longer need to render/import the
<Header/>
component in any other file.https://github.com/JesseAbram/GBC_Class_Bridge/blob/39d6e30189c67043ef87d011464d559721e3a97d/front-end/src/App.js#L23
Thanks, we'll get that fixed before for the next release!