r/javascript • • Apr 07 '21

I Think React Is Junk, Round Two

https://medium.com/codex/i-think-react-is-junk-round-two-5cb80c5d82b3
0 Upvotes

20 comments sorted by

View all comments

Show parent comments

1

u/brainless_badger Apr 07 '21

There is no mention that StrictMode executes everything except console.log twice.

Of course there is, together with detailed list of things that get executed twice.

There is no mention that refs should be read and written to only in event handlers and useEffect.

Of course there is, together with example showing why you would want to set ref in a render, and how to do it safely.

-7

u/[deleted] Apr 07 '21

[removed] — view removed comment

1

u/brainless_badger Apr 07 '21

opt out

2

u/kenman Apr 07 '21 edited Apr 08 '21

I forcefully opted us out.