Что-то про React – Telegram
Что-то про React
300 subscribers
3 photos
498 links
Немного про React.
Список статей и новостей подбирается полностью вручную.
Download Telegram
🎟 Prevent React from Overwriting window.event

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.

https://github.com/facebook/react/pull/13697
🔭 DOM Event Mount Target Considerations

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.

https://github.com/facebook/react/issues/13713
💥 Enable getDerivedStateFromError

This 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 documentation PR.

https://github.com/facebook/react/pull/13746
🎉 Create React App 2.0

This week, Create React App 2.0 was released bringing a year’s worth of improvements with it. Most notably support for SASS and Babel 7.

https://github.com/reactjs/reactjs.org/pull/1215
👀 React Conf Speaker Update

React Conf 2018 is only three weeks ahead. This week, the final list of speakers was released! If you don’t have the chance to attend, join me in watching the live stream.

https://conf.reactjs.org/speakers.html
📝 Making React Docs Even Better

Special shout-out to Dustin Schau (DSchau) for landing multiple commits that are improving the official React documentation. A great documentation is vital to us and we are more than happy for the help.

https://github.com/reactjs/reactjs.org/commits?author=DSchau
🤙 Functional → Function Component

Earlier this year Kyle Simpson (getify) started to raise concerns about the terminology used for functional components. To avoid further confusion, we’ll refer to them as function components from now on.

https://github.com/reactjs/reactjs.org/pull/863
📚 React Cache

We’re soon able to release the simple-cache-provider API as react-cache. Thanks to Marzio Superina (msuperina) for handing over the npm package. This API will be helpful when working with React Suspense.

https://github.com/facebook/react/pull/13755
📱 Don’t Add onclick Listener to React Root
Thanks to an excellent bug report by Alexey Mikitevich (amikitevich) we were made aware of a recent regression in React DOM. If you’re into iOS Safari touch oddities, the bugfix PR is an interesting read.

https://github.com/facebook/react/pull/13778
🔥 RFC: React.pure()

The Core team filed an RFC for React.pure - an API that lets you bail out of updates from a function component, similar to React.PureComponent for classes.

https://github.com/reactjs/rfcs/pull/63
💥 RFC: React.lazy()

To make it easier to code split individual components in React, the new React.lazy() API adds first-class support by embracing dynamic imports.

https://github.com/reactjs/rfcs/pull/64
⚡️ RFC: shouldComponentRemount

Alex Krolick ([alexkrolick](https://github.com/alexkrolick)) published an RFC for shouldComponentRemount, a new lifecycle method to control when React mounts and unmounts a component.

https://github.com/reactjs/rfcs/pull/62
Rename Priority Levels

The Core team also made small changes to some of the API names for the scheduler - one of the building blocks of React’s upcoming concurrent mode. The API is not final and we can expect an RFC soon.

https://github.com/facebook/react/pull/13842
🕵️‍♀️ Deprecate findDOMNode in StrictMode

In an attempt to make React applications easier to maintain, the Core team considers deprecating findDOMNode. The current API is breaking abstraction levels which leads to refactoring hazard.

https://github.com/facebook/react/pull/13841