Hi everyone, I’ve been studying react lately and it’s confusing, amazing, difficult and intriguing… somewhere between AWESOME and “what in the world is going on” with “states”???
Anyway, I thought I’d start a topic on when to USE and when NOT to use REACT.
This is more of a question for me and it started when I read this article:
So far from my limited understanding… what react has effectively done is:
best case scenario of this feat would be this you tube video I found where they rendered over 500,000
- TO CREATE new COMPONENTS:
Now when not to use REACT?
I found this article:
so It seems that REACT.js has some performance costs?
I really like learning react… and I guess learning react with basic small components (which could otherwise be rendered more easily with simple vanilla HTML) is the best way to do that…
Another problem I’m seeing with react is “encapsulation”. It’s great since (CSS) does not leak all over the place until I wonder about WHOLE PAGE/WEB lay out changes which could easily be fixed by a simple SASS update… from what I’ve read… REACT likes all its styleing inline (kinda like email templates?)…so how about css animations? that already work natively with the DOM?
My current idea I guess is…
for simple one page apps:
regular js with modular js patterns? modular, prototype? maybe pubsub methods?
we probably don’t need react if you’re just gonna render 50,000 things as shown in the early video…
for large complex apps… I guess that’s when react comes in but when exactly?
Maybe those with more experience can put some insight as to when REACT is NOT the best approach?
Still liking REACT though… just don’t want to end up using it for the sake of using it…