Manoj
manoj-dev.bsky.social
Manoj
@manoj-dev.bsky.social
React JS
Reposted by Manoj
📚 Had to post this a lot on the other platform lately and apparently, it blows people's mind that this is possible. I wrote it over 2 years ago, and callback refs will only get better in v19 because they will get cleanup functions. Have a read:

tkdodo.eu/blog/avoidin...
Avoiding useEffect with callback refs
Interacting with DOM nodes doesn't necessarily need useEffect
tkdodo.eu
November 22, 2024 at 8:05 AM
Reposted by Manoj
Remote work started in a different way for me, 5 years ago one of my previous employers denied my request to speak at the conference.

I ended up resigning and questioning the decision, why my request was rejected as I was going to speak about Angular.
November 22, 2024 at 8:18 AM
Reposted by Manoj
react@19.0.0-rc1 is out today with a replacement for sibling pre-rendering. Give it a try and maybe we can ship React 19 soon?

github.com/facebook/rea...
[React 19] Disabling prerendering siblings of suspended components breaking common pattern · Issue #29898 · facebook/react
Summary I'm creating this issue to continue the discussion that spawned in the already merged PR (#26380) Several community members have raised concerns about this change and it has gained traction...
github.com
November 14, 2024 at 10:03 PM