This repo contains a YouTube viewer. You can use it to search videos on YouTube and play videos from search results.
Exercise
- Working in pairs, fork and clone this repo
- Add the following rule to your
.eslintrc
- https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-stateless-function.md - Rewrite all components without state or lifecycle methods as functional components
- Add the following rule to your
.eslintrc
- https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md - Add PropTypes to all components which receive
props
- Use destructuring assignment to split out
props
received by functional components into own variables