How devanshdahiya/paste-app works
Paste App is a client-side text-snippet manager. Users create or edit titled content, save it locally, then browse, search, view, share, copy, download, or delete pastes. Routing selects the editor, collection, or read-only view; Redux manages paste state and the slice persists changes in browser localStorage. The shown code supports the primary UI-to-state workflow and local persistence; no server or remote sharing service is evidenced. The README documents sharing, while the sampled list code shows a share action but not its implementation.
Main entry points: pasteSlice.js Paste state · App.jsx Route shell · Home.jsx Create and edit · Paste.jsx Browse and manage
Components 10
App navigation
- Route shell
src/App.jsx - Navigation bar
src/components/Navbar.jsx
Paste workflows
- Create and edit
src/components/Home.jsx - Browse and manage
src/components/Paste.jsx - Read-only view
src/components/ViewPaste.jsx
State and storage
- Redux store
src/store.js - Paste state
src/redux/pasteSlice.js - Browser storage
Other components
- User
- Browser runtime
Connections 14
- User → Route shell: uses routes
src/App.jsx - Route shell → Navigation bar: renders
src/App.jsx - Route shell → Create and edit: routes to
src/App.jsx - Route shell → Browse and manage: routes to
src/App.jsx - Route shell → Read-only view: routes to
src/App.jsx - Create and edit → Paste state: dispatches changes
src/components/Home.jsx - Create and edit → Paste state: reads pastes
src/components/Home.jsx - Browse and manage → Paste state: reads pastes
src/components/Paste.jsx - Browse and manage → Paste state: dispatches deletion
src/components/Paste.jsx - Read-only view → Paste state: reads paste
src/components/ViewPaste.jsx - Redux store → Paste state: registers reducer
src/store.js - Paste state → Browser storage: persists state
src/redux/pasteSlice.js - Browser storage → Paste state: loads initial state
src/redux/pasteSlice.js - User → Browser runtime: copies or downloads