Can you help me to get my navbar component to work in my react project?

It’s not importing the component properly.

Uncaught ReferenceError: React is not defined
at Navbar (navbar.jsx:3)

GitHub Project

You need to import React from ‘react’ in your Navbar component.

1 Like

@Ronnehag is correct. Your navbar.jsx is built like a React component but that file is not importing React.