How h-sihan/qho640-newsem works
This repository contains three separate React examples: a basic counter-and-heading demo, a searchable SkyBook flight listing, and a Next.js SkyBook listing. In the Vite flight app, users submit or clear search criteria; the app filters its in-memory flight data, displays matching flights, and handles flight selection. The Next.js example displays its own flight data and booking buttons but has no search form in the sampled code. The README only describes package setup, so capabilities and connections are based on source excerpts and the SOURCE INDEX; unsampled route wiring is left unconnected.
Main entry points: App.jsx Search and selection · main.jsx Demo entry · SkyBookApp.js Flight display and selection · Main.jsx Flight entry
Components 14
React demo
- Demo entry
src/main.jsx - Heading app
src/app.jsx - Counter
src/counter.jsx
Vite flight app
- Flight entry
skyBookFlights/src/Main.jsx - Search and selection
skyBookFlights/src/App.jsx - Search form
skyBookFlights/src/components/SearchForm.jsx - Flight results
skyBookFlights/src/components/FlightList.jsx - Flight data
skyBookFlights/src/data/flights.js
Next.js flight app
- Next.js page
skyBookFlights-NextJS/my-app/src/app/page.js - Root layout
skyBookFlights-NextJS/my-app/src/app/layout.js - Flight display and selection
skyBookFlights-NextJS/my-app/src/components/SkyBookApp.js - Flight results
skyBookFlights-NextJS/my-app/src/components/FlightList.js - Flight data
skyBookFlights-NextJS/my-app/src/data/flights.js
Other components
- User
Connections 14
- User → Demo entry: opens
src/main.jsx - Demo entry → Heading app: renders
src/main.jsx - Demo entry → Counter: renders
src/main.jsx - User → Flight entry: opens
skyBookFlights/src/Main.jsx - Flight entry → Search and selection: renders
skyBookFlights/src/Main.jsx - Search and selection → Flight data: filters
skyBookFlights/src/App.jsx - Search and selection → Search form: renders
skyBookFlights/src/App.jsx - Search form → Search and selection: submits criteria
skyBookFlights/src/components/SearchForm.jsx - Search and selection → Flight results: renders results
skyBookFlights/src/App.jsx - Flight results → Search and selection: dispatches selection
skyBookFlights/src/components/FlightList.jsx - User → Next.js page: opens
skyBookFlights-NextJS/my-app/src/app/page.js - Flight display and selection → Flight data: reads
skyBookFlights-NextJS/my-app/src/components/SkyBookApp.js - Flight display and selection → Flight results: renders
skyBookFlights-NextJS/my-app/src/components/SkyBookApp.js - Flight results → Flight display and selection: dispatches selection
skyBookFlights-NextJS/my-app/src/components/FlightList.js