RRU 065: useEffect The Good, the Bad, and the Gotchas




React Round Up show

Summary: <h2><strong>Sponsors</strong></h2> <ul> <li><a href="https://www.netlify.com/">Netlify</a></li> <li> <a href="http://sentry.io/">Sentry</a> use the code “devchat” for 2 months free on Sentry’s small plan</li> <li> <a href="https://triplebyte.com/react">Triplebyte</a> offers a $1000 signing bonus</li> <li><a href="https://www.cachefly.com/">CacheFly</a></li> </ul> <h3><strong>Panel</strong></h3> <ul> <li>Lucas Reis</li> <li>David Ceddia</li> <li>Thomas Aylott</li> <li>Justin Bennett</li> </ul> <h3><strong>Summary</strong></h3> <p>The panel starts by discussing if useEffect is a good API or a bad API. The problems that useEffect solves are considered. The panel agrees it is a much better abstraction where subscriptions are concerned. Suspense and data fetching is discussed, the panel considers what the react team has in store concerning data fetching. The panel discusses what it was like to be a beginner to React and how using React is not an intuitive language. The panel shares some of their mistakes with useEffect, and try to consider useEffect from a beginners perspective. The panel gives advice for using hooks.</p> <h3><strong>Links</strong></h3> <ul> <li><a href="https://twitter.com/ryanflorence/status/1125041041063665666">https://twitter.com/ryanflorence/status/1125041041063665666</a></li> </ul> <h3><strong>Picks</strong></h3> <p><strong>Lucas Reis:</strong></p> <ul> <li><a href="https://github.com/kkuchta/css-only-chat">https://github.com/kkuchta/css-only-chat</a></li> </ul> <p><strong>David Ceddia:</strong></p> <ul> <li><a href="https://twitter.com/kentcdodds/status/1125876615177629696">https://twitter.com/kentcdodds/status/1125876615177629696</a></li> <li><a href="https://twitter.com/ryanflorence/status/1125041041063665666">https://twitter.com/ryanflorence/status/1125041041063665666</a></li> <li><a href="https://www.youtube.com/watch?v=1jWS7cCuUXw">Fun with React Hooks - Michael Jackson and Ryan Florence</a></li> </ul> <p><strong>Thomas Aylott:</strong></p> <ul> <li><a href="https://www.amazon.com/Design-Everyday-Things-Revised-Expanded/dp/0465050654/ref=sr_1_1?ie=UTF8&amp;qid=1548462018&amp;sr=8-1&amp;linkCode=ll1&amp;tag=devchattv-20&amp;linkId=f06bfe7482dca8bb751ed6d7cc86e2ab&amp;language=en_US">The Design of Everyday Things: Revised and Expanded Edition</a></li> </ul> <p><strong>Justin Bennett:</strong></p> <ul> <li><a href="https://dusk.now.sh/">https://dusk.now.sh/</a></li> <li><a href="https://developers.facebook.com/videos/2019/building-the-new-facebookcom-with-react-graphql-and-relay/">https://developers.facebook.com/videos/2019/building-the-new-facebookcom-with-react-graphql-and-relay/</a></li> </ul>