Below is my working component
const Countdown = () => {
return(
<p>Countdown.jsx</p>
)
}
module.exports = Countdown //working
But when I replace module.exports = Countdown
with export default Countdown
I got error of Invalid prop 'component' supplied to 'route'
? I have babel and other es6 feature is working.
The way I use my Countdown component like this
ReactDOM.render(
<Router history={hashHistory}>
<Route path="/" component={Main}>
<Route path="countdown" component={Countdown} />
</Route>
</Router>,
document.getElementById('app')
);