Component Tree

Screen Shot 2022-06-28 at 10.19.45 AM.png

App.js is root

// App - Root component
function App() {
  return (
    <div className="App">
    <h2>Hello</h2>
    </div>
  );
}

export default App;

Component Convention

making component is free but there is common convention.

  1. Start with a capital character
  2. one word where if you combine multiple words in one word