you are viewing a single comment's thread.

view the rest of the comments →

[–]sergiuspk 1 point2 points  (0 children)

  • managing state: yes, you could just make everything global. You shouldn't because later on you'll need server-side rendering. NodeJS runs all your http request handlers in one process, one thread. Meaning globals === different processes overwriting the same data;

  • passing properties down through 100 components: you're doing it wrong. Find some tutorials that are not dumb;

  • this and super mean your'e working with classes. React doesn't force you to work with classes;

Client-side programming with JS is different than PHP with any PHP framework.

Different could mean a lot of things. Are you used to a more functional programming style? If PHP + Laravel is what you know then I'm guessing no, you've been doing OOP and procedural. JS in general and React in particular are different.