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

41

u/ub3rgeek Aug 27 '15

I like ES6. I will use it for any project that requires Javascript. I build User Interfaces. React is a tool for building user interfaces. I will use React for building user interfaces because it is an excellent abstraction for composing user interfaces out of components.

I won't use React to build a toaster, but I would use React to build a UI for the toaster.

0

u/[deleted] Aug 27 '15

[deleted]

3

u/YodaLoL Aug 28 '15

And in order to create that lever and knob from scratch you'll need a lot of other tools and knowledge. You can't just make them appear from thin air - unless you modularise it in components cough React

2

u/dhdfdh Aug 28 '15

What language do they use to create React?

1

u/YodaLoL Aug 28 '15

I'm not following you

1

u/dhdfdh Aug 28 '15

People on reddit are saying things can't be done in plain javascript and they need React or it can't be done, yet, React is made in plain javascript which proves that your statement

You can't just make them appear from thin air - unless you modularise it in components cough React

is false. Any competent programmer can do what React does.

2

u/YodaLoL Aug 28 '15

People on reddit are saying things can't be done in plain javascript

Where?

Frameworks facilitates code reusability, readability, maintainability, security, you name it.

Of course you can reinvent React, but why?

0

u/dhdfdh Aug 28 '15

Reinventing React is not my point.

To the question of "where?", is this your first visit to reddit? 80% of all redditors believe it's impossible to code anything without a framework, library or someone else's code.

2

u/YodaLoL Aug 28 '15

I don't think that sentiment correlates with reality at all. People encourage use of popular, ubiquitous frameworks because of aforementioned reasons.

If someone asks for help on reddit, he/she is not quite capable off writing their own implementation, hence framework hype in comment sections.