Menu

Render the Age Calculator Component

Render the Age Calculator Component

In this file, the AgeCalculator component is imported and rendered inside the main App component. This acts as the root component of the application. It ensures that the Age Calculator UI is displayed when the app runs.

File Path: Age_Calculator\src\App.jsx

import "./App.css";
import AgeCalculator from "./components/AgeCalculator";

export default function App() {
  return (
    <>
      <AgeCalculator />
    </>
  );
}