Sample react class component which needs refactoring.
- Refactor the class component into a functional component using react hooks.
- Tidy the code as you see fit.
- Resolve any potential issues, errors, or performance problems.
- Fork this repository.
- Commit your changes.
- Submit a PR.