About Me: I've been a professional web developer for just over 10 years now. I'm currently the lead web development instructor at Better Coding Academy, and as part of what I do, I post videos on our YouTube channel at https://www.youtube.com/c/BetterCodingAcademy.
(Subscribe for awesome web development content!)
React needed a solution for better component composition and data flow.
First, there was the Higher Order Component (well, first there was mixins, but we won't talk about that).
Then, there was the Render Prop Component, addressing many issues raised by Higher Order Components.
However, less than a few months later, out came React Hooks - and people were blown away.
React Hooks solved almost all the issues caused by Render Prop Components, and did it in less code too.
In the following video, I give a full run-down of how to convert Render Prop Components into React Hooks, and how you would use them in professional React projects. Hope you enjoy!