Skip to content

Ashna639/react-project

Repository files navigation

💾 React Local Storage Project

This project is a React-based application that focuses on Data Persistence using the browser's localStorage API. It allows users to manage data that remains saved even after the browser is closed or the page is refreshed, providing a seamless user experience without the need for a backend database.

🔗 Live Demo


✨ Features

  • Persistent Data: Uses localStorage to save user input locally in the browser.
  • Full CRUD Operations: Users can Create, Read, Update, and Delete items.
  • Dynamic State Management: Built with React Hooks (useState, useEffect) to sync the UI with local storage.
  • Real-time Updates: The UI reflects data changes instantly without page reloads.

🛠️ Tech Stack

  • Framework: React.js (Vite)
  • State Management: React Hooks
  • Storage: Browser Local Storage API
  • Styling: CSS3 / Tailwind CSS
  • Deployment: Vercel

🧠 What I Learned

  • How to stringify and parse JSON data for storage in the browser.
  • Utilizing the useEffect hook to trigger save operations whenever the state changes.
  • Handling initial state hydration to load saved data when the component mounts.
  • Managing application state efficiently to prevent data loss.

📂 Repository Structure

├── src/
│   ├── components/  # Reusable UI components
│   ├── App.jsx      # Main logic & Local Storage integration
│   └── main.jsx     # Entry point
├── public/          # Static assets
└── README.md        # Documentation

About

Ecommerce app with local storage

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages