When you go to the deployed version of this Youtube Clone, you may notice that if you scroll down instantly after going to the deployed page, you may see a black screen.
This black screen is because the video is not yet loaded from its source and the code is trying to access it. See VideoCard.jsx file.
This is happening because I am not using optional chaining here.
It is a general rule, that whenever accessing data after fetching it from an API, one must use optional chaining to access the data. If you want to learn more about it go to MDN docs.
Implement optional chaining wherever you think it is necessary, and make a PR.
When you go to the deployed version of this Youtube Clone, you may notice that if you scroll down instantly after going to the deployed page, you may see a black screen.
This black screen is because the video is not yet loaded from its source and the code is trying to access it. See VideoCard.jsx file. This is happening because I am not using optional chaining here. It is a general rule, that whenever accessing data after fetching it from an API, one must use optional chaining to access the data. If you want to learn more about it go to MDN docs.
Implement optional chaining wherever you think it is necessary, and make a PR.