DEV Community

Cover image for What Is Your Aha Moment With React
Miroslav Nikolov
Miroslav Nikolov

Posted on

What Is Your Aha Moment With React

My early days with React were... difficult.

Things didn't go straight. So many bumps and new concepts. It was slow to grasp Redux, rendering and class components.

Partly because I was so used to OOP in JavaScript, partly due to the new component UI patterns, I have to admit the whole journey was full of surprises and not easy.

Hooks didn't make things easier, either.

πŸ™€ What is your latest React Aha moment?

Top comments (4)

Collapse
 
ivan_jrmc profile image
Ivan Jeremic

I had many it was basically my first language even before JS. I was never able to learn coding but thanks to react I was able to learn it the missing part for me was always to make my logic do something instantly on the screen and thanks to JSX this was super easy.

Collapse
 
moubi profile image
Miroslav Nikolov

Interesting. Is the application too small perhaps?

I learnt React together with Redux and the latter was not an easy going one.

It also seems the general consensus is to lift logic from your components and move it to Redux where it’s easy to test.

Collapse
 
revskill10 profile image
Truong Hoang Dung

I have no AHA moment with React, because everything should just works that ways.
The AHA moment is when i tried something cool like react-query to watch it invalidate caches, refetching :)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.