typeerror: class constructor RouteReuseStrategy cannot be invoked without 'new' code example
Example: TypeError: Class constructor Home cannot be invoked without 'new'
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
class NavBar extends Component{
render(){
return(
<div>
{/* Watch out to */}
<Link to="/">Home</Link>
<Link to="/about">About</Link>
<Link to="/contact">Contact</Link>
</div>
)
}
}
export default NavBar;