r/javascript • • Aug 27 '15

Stop Using React for EVERYTHING!

https://medium.com/@zackargyle/stop-using-react-for-everything-c8297ac1a644
3 Upvotes

131 comments sorted by

View all comments

62

u/parlezmoose Aug 27 '15

"You guys think you're cool but news flash: UR NOT."

Wah wah wah. Low effort shit post.

9

u/SomeRandomBuddy Aug 27 '15 edited May 08 '23

sdjkls jvsdv

2

u/jellatin Aug 27 '15

I think it's more about all the "React is the One True Way™" talk. Nobody seems to be able to just say "hey React is great and it solves some common problems."

It's always

  • JSX came along and blew away all previous misconceptions about separation of concerns!!!

  • Unidirectional data flow is the only model that makes sense!!!

  • Immutable data structures for everything!!!

And the constant backlash of "oh you're using Ember/Angular? Well I'm using React". That's awesome... IF you've got a need for very fast DOM rendering. Otherwise it's a tool like most good tools, it has pros and cons.

10

u/[deleted] Aug 28 '15

Have you actually... Used React? React's selling point is not 'very fast DOM rendering', it's that it allows you to program in a way where you can assume the entire DOM rerenders after every state transformation, while not being slow.

Additionally, the unidirectional data flow portion is more related to flux. You can even do two way binding with react if you'd like to.

Perhaps "React is the One True Way" talk to no good, but the "I Have No Idea What I'm Talking About" talk you gave is worse.