0
Q:

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;
1

New to Communities?

Join the community