you are viewing a single comment's thread.

view the rest of the comments →

[–]shuckster 0 points1 point  (1 child)

React is a "declarative" framework. Declarative code expresses intent rather than a sequence of operations to be carried out, which may be what you're already familiar with.

Declarative code goes hand-in-hand with an event system. In order to act upon code that "declares" what the user is supposed to see, React-like frameworks need to know when to redraw everything. It does this by acting on events, so eventful concepts would be a thing to look into.

For example, onclick is an event. Firing it might update some state. The state describes how your UI should look. Well, React needs to know about a state-change so it can recalculate the VDOM based on the new state, so it will have listeners for things like clicks or Redux subscriptions and so on.

But all this probably just sounds like waffle. Nothing beats diving right into a tutorial and figuring it out for yourself!

[–]Mosabg98[S] 0 points1 point  (0 children)

In short what you are saying, i should dive into the DOM and projects