Triggering search on page load
The next enhancement that I want to make is that, when the app loads, we get search results straight away rather than just a blank page like we do now.
We'll use a lifecycle hook to achieve this.
If you go to the Amazon.com front page, it doesn't just show you a blank page and suggestion you search for something.
Instead, they show you the top items so that straight away you're engaged with their store.
Click to load comments...