Closed sweep-ai[bot] closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
chat-app | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 25, 2023 10:40pm |
resolve conflicts
PR Feedback: 👍
Description
This PR implements a useLocalStorage hook in the React application to store the user's name. Currently, the user's name is being prompted every time the application is refreshed, which is not a good user experience. By using the useLocalStorage hook, we can persist the user's name across sessions.
Summary of Changes
src/hooks/useLocalStorage.js
file. This hook is responsible for getting, setting, and removing data from the local storage.src/components/App/App.jsx
file to use the useLocalStorage hook instead of useState for the user's name. This ensures that the user's name is stored in the local storage and persists across sessions.Please review and merge this PR to improve the user experience by storing the user's name in the local storage.
Fixes #8.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: