yarn
yarn start
Open http://localhost:3000 with your browser to see the result.
Here is a working live demo : https://youtube-search.aaronlu1.vercel.app
- React
- Redux
- TypeScript
- styled-components
- Responsive Web Design
- Infinite Scroll
- ESLint
- Prettier
Using TypeScript
to save time for catching errors and providing fixes before you run code.
Using ESLint
and Prettier
as the code linter and formatter to enforces a consistent style, find and fix problems.
Infinite scrolling is a web-design technique that loads content continuously as the user scrolls down the page, eliminating the need for pagination. Using Intersection Observer API
under the hood, rather than constantly checking the distance from the top.
- Enter some
keywords
in the search box to get the relative video results from YouTube - You can
see
a collection of search results that match the keywords - Scroll down to load more videos without pagination for a better
browsing experience
Cache
the previous results into redux, so there is no need to fetch the same result again