Menu

Rendering the WordCounter Component

Rendering the WordCounter Component

This file sets up the main application by importing and rendering the WordCounter component inside a centered layout. The App component acts as the parent container, wrapping the child component in a styled div to display it properly on the screen.

File Path: Word-Counter-Tool\src\App.jsx

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

function App() {
  return (
    <>
      <div className="main-wrapper flex justify-center w-full min-h-screen">
        {/* Word Counter Component */}
        <WordCounter />
      </div>
    </>
  );
}

export default App;