Advanced React
summary
Live demo builds a small WordPress-backed site that fetches posts from the WP REST API, shows a loading indicator, and refactors duplicate post/work lists into shared data logic. It implements a reusable HOC called withData that fetches a resource and passes results as props, then rewrites that as a simpler PostData component using a render props pattern. It wires client routing with React Router and discusses when to add Redux and server-side or static rendering (Next.js/Gatsby) — the demos mostly work despite intermittent fetch hiccups.
AI-written summary · about
chapters (13)
- 0:00Introduction to Advanced React
- 1:47Live coding setup
- 4:28Creating Post Excerpt component
- 8:53Fetching data with lifecycle methods
- 13:46Adding loading state
- 23:43Refactoring to Post List component
- 27:17Higher-order component pattern
- 37:08Render props pattern
- 47:08Introducing React Router
- 50:00Setting up routes
- 53:10Overview of Redux
- 54:54Server-side rendering options
- 58:19Q&A and closing
