r/AskProgramming • u/Electrical_Fact7128 • Apr 17 '26
Why can't I understand React?
I’m comfortable with JavaScript fundamentals, but when I try to learn React, things start feeling confusing.
Concepts like state, props, hooks, and the overall way React structures code feel very different from how I normally think in JavaScript. Sometimes I understand the syntax, but I don’t fully get why things are done that way.
Has anyone else experienced this? How did you bridge the gap between knowing JavaScript and actually understanding React?
3
Upvotes
View all comments
Show parent comment
1
u/alien3d Apr 17 '26
it more complicated because of their rerender mess up . Normal js - no repaint and target dom . While in react - repaint a lot of. You need to diff which state. Normal js dont need state . You have var for global access while in react sudden come new term redux , zustand . React function can have state and call as hook while normal function dont have state .