How rhymond/product-compare-react works
This is a React/Redux product-comparison page. A visitor opens the app, which routes the home page to load the product catalog, display products, and allow selections; once at least two are selected, the page shows their comparison. Redux actions and a reducer manage catalog and selection state. The README documents the comparison-page product and its React/Redux stack. Source excerpts do not show the product and comparison components’ internal rendering details, so those links are limited to relationships visible in the home-page excerpt. Production service-worker caching is a separate runtime capability.
Main entry points: Home/index.js Compare Page · src/index.js App Entry · App/index.js App Router · product.js Product Actions
Components 13
Application UI
- App Router
src/containers/App/index.js - Compare Page
src/containers/Home/index.js - Not Found
src/containers/NotFound/index.js - Product List
src/components/ProductList/index.js - Product View
src/components/Product/index.js - Comparison View
src/components/Compare/index.js
Catalog and State
- Product Actions
src/actions/product.js - Product Catalog
public/products.json - Product Reducer
src/reducers/productReducer.js - Action Types
src/constants/types.js
Runtime Support
- App Entry
src/index.js - Offline Cache
src/registerServiceWorker.js
Other components
- Visitor
Connections 12
- Visitor → App Entry: opens app
README.md - App Entry → App Router: renders
src/index.js - App Entry → Product Reducer: configures store
src/index.js - App Entry → Offline Cache: registers
src/index.js - App Router → Compare Page: routes to
src/containers/App/index.js - App Router → Not Found: routes to
src/containers/App/index.js - Compare Page → Product Actions: dispatches
src/containers/Home/index.js - Compare Page → Product List: renders
src/containers/Home/index.js - Compare Page → Comparison View: renders
src/containers/Home/index.js - Product Actions → Product Catalog: fetches
src/actions/product.js - Product Actions → Action Types: uses types
src/actions/product.js - Product Reducer → Action Types: matches types
src/reducers/productReducer.js