There’s more to it than size, the framework itself and its execution speed and behaviors. Look at a flame graph of any decent React app for example.
Sure, I could’ve been clearer, but you did forget react-dom. And good luck getting RSC going on GH pages.