Profile picture
Philipp Spiess @PhilippSpiess
, 9 tweets, 5 min read Read on Twitter
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…
📚 Brian (@brian_d_vaughn) added an API that adds this.context in all callbacks of class components and simplifies migration to the new context:

class extends Component {
static contextType = MyContext;
render() {
return this.context;
}
}

github.com/facebook/react…
👀 After previous tweets by the React Core team (e.g. ), Dominic (@trueadm) now landed a commit that renames AsyncMode to ConcurrentMode.

Async React is now Concurrent React!

github.com/facebook/react…
⚡️ Alex Reardon (@alexandereardon) started an interesting discussion about comparing the performance of react-redux to a single, shared React Context. Dig in for insights into the different models and their restrictions.

github.com/facebook/react…
⏳ Andrew (@acdlite) also added an API for modifying priority levels to the scheduler. This makes it possible to enqueue high priority state changes that should be flushed earlier.

Expect an RFC soon to finalize the names.

github.com/facebook/react…
🎟 Sergei Startsev (sergei-startsev) worked on a fix to prevent React from overwriting window.event in event callbacks when using a development build. The PR is also a great example of the throughout manual testing we do for React DOM.

github.com/facebook/react…
🔭 React is currently listening to DOM events on the document level. If you’re curious about potential alternatives which we’re considering as part of React Fire, check out my write-up about this topic.

github.com/facebook/react…
🙌 Special thanks to our first-time contributors this week: Brian Ng (@existentialism), Dustin Schau (@SchauDustin), Lionel (elrumordelaluz), and Sergei Startsev (sergei-startsev).

And that was all for This Week In React ⚛️
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to Philipp Spiess
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member and get exclusive features!

Premium member ($30.00/year)

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!