diff --git a/README.md b/README.md
index 0aceeab..e8bf406 100644
--- a/README.md
+++ b/README.md
@@ -219,3 +219,136 @@ app.get('/suggest', async (req, res) => {
res.status(500).send('Internal Server Error');
}
});
+Improving the UI/UX
+Use Material-UI for sleek components:
+
+shell
+
+Copy
+npm install @mui/material @emotion/react @emotion/styled
+Update the search component with Material-UI (src/components/Search.js):
+
+javascript
+
+Copy
+import React, { useState, useEffect } from 'react';
+import API from '../api';
+import { TextField, Button, List, ListItem, ListItemText, Box } from '@mui/material';
+
+const Search = () => {
+ const [query, setQuery] = useState('');
+ const [results, setResults] = useState([]);
+ const [suggestions, setSuggestions] = useState([]);
+
+ const handleSearch = async () => {
+ const data = await API.get(`/search?q=${query}`);
+ if (data) setResults(data.webPages.value);
+ };
+
+ const fetchSuggestions = async (q) => {
+ const data = await API.get(`/suggest?q=${q}`);
+ if (data) setSuggestions(data.suggestionGroups[0].searchSuggestions);
+ };
+
+ useEffect(() => {
+ if (query.length > 2) {
+ fetchSuggestions(query);
+ } else {
+ setSuggestions([]);
+ }
+ }, [query]);
+
+ return (
+
+ {suggestions.map((suggestion, index) => (
+
+
+ {results.map((result) => (
+
+