Why React exist?
When I started learning frontend then I picked React for frontend. Why, because everyone talks about React. To get into FOMO, I started learning React, and I also learned.
I learned useState. I learned useEffect. I built stuff. It worked. And I think it's done.
But somehow, one question exposed my real situation of what I learned. And the question is: why does it exist? I never thought about that type of question. I think it works, I learned frontend.
Then I started to look at why things exist, why someone built this, what problem motivated them to build that, like a lens. Now I got my lens. Can you have one? Ask yourself: can I answer why React exists?
Don't worry if you don't answer. We will discuss why React exists and which problem it tries to solve.
So the main problem is to build and maintain complex, interactive user interfaces. Direct DOM manipulation becomes difficult as an application complexity grows.
The problem is to build a button.…