Mission 10 / Final capstone
Developer Article Hub
Combine forms, Fetch API, arrays, UI state, sorting and localStorage in one useful feature.
Hard250 XPAPIStateSaved items
Capstone flow
One feature, several connected responsibilities
- The form validates and starts an asynchronous search.
- The response becomes the current articles state.
- The selected sort creates a derived copy of that state.
- Saved items use a second localStorage-backed array.
- A single render function keeps the visible list and count together.
Article Hub
Search, sort and save
Saved view
Explain-audit
Can you trace the code?
- Explain what changes when the form is submitted.
- Explain why sorting uses a copied array.
- Explain how one saved article survives refresh.
- Explain why the page can still show saved items when the API fails.