robrich · @robrich
21 followers · 169 posts · Server hachyderm.io
lgersman · @lgersman
21 followers · 78 posts · Server fosstodon.org

Just overflown the brand new React docs at react.dev

Lot's of the caveats discussed at react.dev/learn/you-might-not- can be prevented by just using Redux stores and thunks (yes yes yes😍) right from the beginning of your React project.

#redux #react #thunks #useeffect

Last updated 2 years ago

crucifixGlitch · @crucifixGlitch
44 followers · 380 posts · Server fosstodon.org

Literally spent about a couple hours bashing my head against why I had duplicate rows when parsing the database data. I thought I wasn't using useEffect() correctly and started learning about its return value (cleanup) function.

Just asked myself if it might be possible to accomplish my goal without useEffect(). Fixed the issue by deleting like 3 lines of code... lol. 🀦

#useeffect #react #webdev

Last updated 2 years ago

nosh :fosstodon: · @nosherwan
323 followers · 1473 posts · Server fosstodon.org

@ro I dont actually know alot about vue, thank you for telling me about it. πŸ™πŸΌ

However my experience is people usually are disappointed with aka , its dependency array issues, nextjs hydration issues, reactjs re-renders on client etc; these issues become pain points.

And then they turn to other libraries.

Also reactivity is absent in reactjs, however is there in all new frameworks such as svelte, solidjs & qwik etc.

Reactjs was good until SPAs were in trend.

#footguns #useeffect #reactjs

Last updated 2 years ago