How packtpublishing/react-projects-second-edition works
This repository is a book’s collection of React and React Native project examples, not one integrated product. Its principal workflows vary by chapter: users browse project, task, list, hotel, product, or post interfaces; some can submit reviews, posts, or list forms, while other examples provide a game or 3D scene. The graph highlights those distinct product stages and shared app-level routing or state layers. Several capabilities are represented from the README and file tree; where their source was not sampled, links are omitted rather than inferred.
Main entry points: AppContext.js List app context · Projects.js Projects and profile · Board.js Task board · Lists.js Lists
Components 26
Web applications
- Projects and profile
Chapter02/src/pages/Projects.js - Project detail
Chapter02/src/pages/ProjectDetail.js - Task board
Chapter03/src/pages/Board/Board.js - Backlog
Chapter03/src/pages/Backlog/Backlog.js - Task data hook
Chapter03/src/hooks/useDataFetching.js - Lists
Chapter05/src/pages/Lists.js - List detail
Chapter05/src/pages/ListDetail.js - List form
Chapter05/src/pages/ListForm.js - Hotel browsing
Chapter06/src/pages/Hotels.js - Hotel detail
Chapter06/src/pages/HotelDetail.js - Review submission
Chapter06/src/pages/ReviewForm.js
Commerce and Q&A
- Product storefront
Chapter07/pages/products/index.js - Shopping cart
Chapter07/pages/cart/index.js - GraphQL API
Chapter07/pages/api/graphql/index.js
Native applications
- Post feed
Chapter09/screens/Posts.js - Post detail
Chapter09/screens/PostDetail.js - Post submission
Chapter09/screens/PostForm.js - Login and session
Chapter09/screens/Login.js
Interactive experiences
- Game screen
Chapter08/screens/Game.js - Game result
Chapter08/screens/Result.js - 3D scene composition
Chapter10/src/App.js
App state and navigation
- List app context
Chapter05/src/context/AppContext.js - Review state
Chapter06/src/context/ReviewsContext.js - Post state
Chapter09/context/PostsContext.js - User state
Chapter09/context/UserContext.js
Other components
- User
Connections 28
- User → Projects and profile: browses
- Projects and profile → Project detail: opens route
Chapter02/src/App.js - User → Task board: views board
- Task board → Task data hook: loads data
Chapter03/src/pages/Board/Board.js - Backlog → Task data hook: loads data
Chapter03/src/pages/Backlog/Backlog.js - User → Lists: browses
- User → List detail: opens route
- User → List form: opens form
- Lists → List app context: uses context
- List detail → List app context: uses context
- List form → List app context: uses context
- User → Hotel browsing: browses
- User → Hotel detail: opens route
- User → Review submission: submits review
- Review submission → Review state: adds review
Chapter06/src/pages/ReviewForm.js - User → Product storefront: browses products
- User → Shopping cart: manages cart
- Product storefront → GraphQL API: requests data
- User → Game screen: plays
- Game screen → Game result: navigates
- User → Post feed: browses
- User → Post detail: opens route
- User → Post submission: creates post
- User → Login and session: authenticates
- Post submission → Post state: uses context
Chapter09/screens/PostForm.js - Post feed → Post state: uses context
- Login and session → User state: uses context
- User → 3D scene composition: views scene