r/javascript • • Dec 04 '20

No One Ever Got Fired for Choosing React

https://jake.nyc/words/no-one-ever-got-fired-for-choosing-react/
322 Upvotes

242 comments sorted by

View all comments

Show parent comments

4

u/Peechez Dec 04 '20

Not a good alternative in most cases

0

u/[deleted] Dec 04 '20

[deleted]

15

u/Peechez Dec 04 '20

This is a fine stance if your data is read-only or you don't care about performance. The solution to context's bad performance is consumer/provider spaghetti or rewriting a half-baked redux yourself

3

u/ScientificBeastMode strongly typed comments Dec 04 '20

If you use memoization for stateful components using context, then you can still be pretty performant. But then you’re ramping up the complexity enough that the trade-off seems small.

0

u/[deleted] Dec 04 '20

[deleted]

14

u/Peechez Dec 04 '20

It's just not true.

Well when you put it like that I guess I'm wrong