When React launched in 2013, every component was a class
When React launched in 2013, every component was a class.
When stateless function components arrived in 2015, I only used class components when I needed state.
When hooks arrived in 2019, I stopped using class components.
Now that React Server Components are here, I use hooks less.
React is 10 years old. But it remains popular because it keeps innovating.
And React isn’t just popular because of innovation. It’s also remarkably stable.
Although it’s 10 years old and has had many major releases, class components continue to work.
Stability combined with innovation is hard. The React team has balanced these concerns well.