Philipp Spiess Profile picture
web shenanigans at @sourcegraph (prev @meta)
Oct 5, 2018 11 tweets 7 min read
Another week has passed and it’s time for another This Week In React ⚛️.

Enable getDerivedStateFromError, Create React App 2.0, A Jest Helper for Concurrent Tests, and a lot more.

Subscribe at this-week-in-react.org or read the thread ➡️ 💥 getDerivedStateFromError is a new lifecycle method that is invoked after an error has been thrown by a descendant component. With that, you directly update a component’s state based on the error. Learn more in the open docs PR.

github.com/facebook/react…
Sep 28, 2018 9 tweets 5 min read
It’s Friday again: Time for the second issue of This Week In React ⚛️.

💌 Starting this week, there’s also an email newsletter. If you prefer that format, subscribe at this-week-in-react.org and tell your friends!

Now let’s go! Thread ➡️ 🔥 Andrew (@acdlite) added pure(), a new HOC to bring PureComponent behavior to functional components. 🔥

const MyPureComponent = pure(MyComponent);

This is incredibly exciting and will be useful in so many situations. 🤯

github.com/facebook/react…
Sep 21, 2018 11 tweets 5 min read
Introducing: This Week In React ⚛️


Weekly coverage of interesting pull requests, discussion, and RFCs around React Core and React DOM. Every Friday.

The first issue is out today! Right here (thread) ➡️ 🚀 The biggest shoutout this week goes to Alexander Nanberg (@alexnanberg) for working tirelessly on moving reactjs.org to @gatsbyjs v2 - Great to see it online 🙌 github.com/reactjs/reactj…