Incidentally, there is a talk by Sebastian Markbage (who is an absolutely brilliant engineer who I had the pleasure of working with back when I was on the React.js core engineering team), that you might find very interesting:
https://www.youtube.com/watch?v=4anAwXYqLG8â–¾
A highly recommended watch for all engineers. It touches indirectly on some related topics.