When a browser receives an HTML document, it creates the Document Object Model (DOM) which is a tree representation of the document. Then there are DOM methods that allow us as Frontend developers to programmatically access parts of the parsed documents and add functionality to websites. So far so good!
Hello everybody! 👋🏻
You might remember my "This month I learned" series in which I shared articles that I posted in... surprise... my "Today I learned" section. I decided to change the format a little bit and also include other great things that I read or discovered. So here we go!
How to write reusable sane API-based Preact, React or Vue.js components using the Render Props pattern
It doesn't matter if I'm dealing with edited content or GitHub statistics, almost every dataset is available to me via API endpoints. Those datasets then go into my React, Preact or Vue.js applications. Up until today I hadn't figured out the best way to work with API data in a component-driven world. But you know what — now I know.