1

created a react app when i try to import an module it is imported but when i used the component custom tag it says " 'component' is defined but never used " in the terminal and the data inside the custom tag that shoud be visible is not

import './App.css';
import navbar from "./bannerV"

function App() {
  return (
    <div className="App">
      <navbar/>

      hello

    </div>
  );
}

in this navbar is importd but component is not showing any of the things inside it it just shows hello

expecting a solution

Shreyansh
  • 11
  • 2
  • 2
    All React component names must start with a capital letter. If you start a component name with a lowercase letter, it will be treated like a built-in element like a
    or a
    – Sergey Sosunov Feb 07 '23 at 19:02
  • Lower-case tag names are considered to be HTML tags. – Baymax Feb 07 '23 at 19:03

0 Answers0