How antoinesoros/houserate works
HouseRate is a small React app for splitting a house-stay price among occupants according to each occupant’s person-nights. Users configure the stay dates, total price, and occupants, then save the settings and view the resulting per-occupant shares. The router connects the configuration and calculator screens; both use shared data functions, which load and save settings in browser localStorage. The README is empty, so this map reflects the sampled source files and does not assume additional capabilities.
Main entry points: Calculator.jsx Share calculator · Config.jsx Stay configuration · App.jsx App router · data.js Settings data
Components 8
App screens
- App router
src/App.jsx - Share calculator
src/components/Calculator.jsx - Stay configuration
src/components/Config.jsx
Stay and pricing
- Settings data
src/data.js - Share calculation
src/data.js
Browser persistence
- localStorage
Other components
- User
- React entry
src/main.jsx
Connections 10
- React entry → App router: mounts
- App router → Share calculator: routes to
- App router → Stay configuration: routes to
- User → Share calculator: views and uses
- User → Stay configuration: edits settings
- Share calculator → Settings data: loads settings
- Share calculator → Share calculation: calculates shares
- Stay configuration → Settings data: loads and saves
- Stay configuration → Share calculation: previews shares
- Settings data → localStorage: reads and writes