Class constructor ExampleApp cannot be invoked without 'new'
Example 1: TypeError: Class constructor Model cannot be invoked without
{
"compilerOptions": {
"target": "es6"
}
}
Example 2: 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>
{}
<Link to="/">Home</Link>
<Link to="/about">About</Link>
<Link to="/contact">Contact</Link>
</div>
)
}
}
export default NavBar;