Menu

Render the RecipeFinder Component

Render the RecipeFinder Component

This file is the main App component that sets up the basic layout of your application. It displays the heading and instructions at the top and renders the RecipeFinder component, which handles the core functionality of searching and showing recipes.

File Path: Recipe-Finder\src\App.jsx

import "./App.css";

import RecipeFinder from "./components/RecipeFinder";

function App() {
  return (
    <div className="main-wrapper flex flex-col items-center w-full min-h-screen pt-8">
      <div className="head-text flex flex-col items-center">
        <h1 className="mb-2 text-2xl md:text-3xl text-center">Recipe Finder</h1>
        <h2 className="text-base md:text-xl text-center">
          (Click on the recipe cards to view the cooking instructions)
        </h2>
      </div>

      {/* Recipe Component Section */}
      <RecipeFinder />
    </div>
  );
}

export default App;