React Refs and Micro Frontends
React Refs and Micro Frontends
React Refs are not the easiest topic in React. I took the time to write down everything I know about Refs and how to use them in React. Often Refs get directly associated with HTML elements, however, it all starts with instance variables :-)
Let me know: What use cases do you have for Refs in your React application?
For a recent client of mine another topic came up: Micro Frontends. I haven't heard much about Micro Frontends before, but my client had a particular case where it made sense to implement it with React, so I gave Micro Frontends a chance with React and Wepback. What do you think about it?
JavaScript Vanilla Implementations
When was the last time you have used JavaScript's replace() function to replace all occurrences of a string only to notice that replace() doesn't replace all of them? :-) Fortunately replaceAll() will become available for all browser soon. Until then, regular expressions help you.
I find it always a great exercise to implement familiar functions from Lodash or other third-party utility libraries in JavaScript. In this short tutorial, I show how to implement groupBy() with vanilla JavaScript just using Reduce.
Once you mastered Reduce in JavaScript, it becomes more effortless to create specific logic within an iteration. In this tutorial, I show you how to implement countBy() in JavaScript. What was your last case where you had to use JavaScript's reduce?
Full-Stack Engineer Wanted
The folks from Revue, the company I am using my Newsletter for, are looking for a Full-Stack Engineer. For anyone who is looking for a job, I think this is a really exciting product to work on and I think the team is small enough for you to have a great impact there. Read their job description for more details.
Personal Recommendations
Recently I watched the AlphaGo - The Movie on YouTube. I cannot tell you how many times I had goosebumps, but this is a great production to look behind the scenes of popular machine learning efforts.
That's it from my side. If you like my content, it's possible to sponsor it via GitHub now :-) It would mean a lot to me having you there as sponsor.
Best, Robin