Can you write your own standard library, browser and operating system?
Let me put it this way: Chrome, the Linux Kernel and Ubuntu combined are about 600-700 million lines of code. React core has 70k (150kb). You‘re using 0.0017% less library and framework code than the rest of us.