This project is a Google Search clone built using React and Tailwind CSS. The main objective of this project is to gain a clear understanding of React hooks and Context API by implementing a simplified version of a search engine interface.
- Search functionality with dynamic results
- Dark and light theme toggle
- Responsive design using Tailwind CSS
- Use of React hooks for state management
- Context API for managing global state
-
Clone the repository:
git clone https://github.com/theprince29/Search-engine.git cd Search-engine
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to:
http://localhost:5173/
.
├── public
├── src
│ ├── components
│ │ ├── Navbar.js
│ │ ├── Footer.js
│ │ ├── Results.js
│ │ ├── Search.js
│ ├── contexts
│ │ └── ResultContext.js
│ ├── App.js
│ ├── index.js
│ └── ...
└── README.md
- React: A JavaScript library for building user interfaces
- Tailwind CSS: A utility-first CSS framework for styling
- React Router: For handling routing in the application
- Context API: For managing global state across components
- React Hooks: For managing state and side effects in functional components
- React Hooks: Learned how to use
useState
,useEffect
, anduseContext
to manage component state and side effects. - Context API: Implemented global state management using Context API, allowing data to be shared across multiple components.
- Routing: Used
react-router-dom
to implement client-side routing for a single-page application (SPA). - Responsive Design: Applied Tailwind CSS to create a responsive and modern UI.
This project is licensed under the MIT License - see the LICENSE file for details.