JavaScript – VS code insists the component is never used, even though it has been.

Remember to react whenever you are dealing with custom components such as navBar. The second thing is to strongly recommend the ingredients you want to start with the capital letter. Like you can name your JS file anything. [small letter, capital letter or numbers] But when importing this file with some variable name, your verbal name should start with capital letters.

import React from 'react';
import './App.css';
import NavBar from './components/navBar_component';
import '../node_modules/bootstrap/dist/css/bootstrap.min.css';


function App() {
  return (
    <NavBar />
  );
}

export default App;

Leave a Reply

Your email address will not be published.