A simple, responsive social media-style app built with React. Users can create, view, and delete posts. It demonstrates modern React features including useReducer, Context API, dynamic routing with React Router, loading state management, and proper useEffect cleanup.
- Add, delete, and list posts
- Fetch posts from a dummy API
- Responsive layout with sidebar and main content
- Styled with custom CSS and Bootstrap
🔄 Global state management using useReducer and Context API 📤 Create new posts and send them to an external API 🗑️ Delete posts from the feed 🔃 Fetch post list from dummyjson.com 🧭 Routing with react-router-dom 🧹 Clean up API calls using AbortController in useEffect ⏳ Loading spinner during API fetches 🛠️ Bootstrap UI for clean layout and form styling
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open http://localhost:5173 in your browser.
- Fetches posts from https://dummyjson.com/posts
Feel free to contribute or modify for your learning or personal use!