I can't get this react class to export and I can't figure out why. I have the export class at the bottom and everything is extending what it should. Is it my withRouter method?
import React, {Component} from 'react';
import {HeaderAdmin} from '../headerAdmin';
import {DashBoxes} from './dashBoxes';
import {MetaData} from '../metaData';
import {withRouter} from 'react-router-dom';
class CoachDashMain extends Component {
render() {
return(
<div>
<HeaderAdmin />
<DashBoxes />
<MetaData />
</div>
);
}
}
export default withRouter(CoachDashMain);
the error I'm getting is ./components/Coach/coachDashMain' does not contain an export named 'CoachDashMain'.
the import in another file looks like:
import {CoachDashMain} from './components/Coach/coachDashMain'