Что-то про React – Telegram
Что-то про React
300 subscribers
3 photos
498 links
Немного про React.
Список статей и новостей подбирается полностью вручную.
Download Telegram
📱 Infrastructure for Passive/Non-Passive Event Experiments

To explore future APIs, this PR is adding infrastructure to allow registration for passive/non-passive events in the event system. Please note that this is currently in the experimentation phase and it might take some time until these APIs are available.
https://github.com/facebook/react/pull/15036
🌎 React Docs Localizations Update

Five new React documentation websites went live:
German: de.reactjs.org
Hebrew: he.reactjs.org
Korean: ko.reactjs.org
Polish: pl.reactjs.org
Turkish: tr.reactjs.org
These websites are now complete:
Portuguese (Brazil): pt-br.reactjs.org
Russian: ru.reactjs.org
In addition to that, we’re happy to welcome the Georgian localization repository.
https://github.com/reactjs/ka.reactjs.org
🚀 Run Persistent Mode Tests in CI

This PR adds a new command to run persisted mode tests in CI as well.
https://github.com/facebook/react/pull/15029
⚓️ Improve Hooks FAQ About Dependencies

To address some frequently asked questions about the dependencies array used for some hooks, this PR adds new content to the documentation.
https://github.com/reactjs/reactjs.org/pull/1815
🏞 Partial Hydration: Render Client-only Content at Normal Priority

This change is improving handling of partially hydrated HTML of server-rendered suspense boundaries.
https://github.com/facebook/react/pull/15061
🧪 Experimental Event API Scaffolding

To experiment with new event APIs, this PR adds some scaffolding to React and adds new Event primitives.
https://github.com/facebook/react/pull/15108
🔥 React.warn() and React.error()

This PR adds two new APIs to React: React.warn() and React.error(). These will log to the console and include a component stack. Useful for providing more detailed error messages in third party packages.
https://github.com/facebook/react/pull/15170
🎉 Stable Profiler API

The profiler API, added about 10 month ago, is now marked as stable.
https://github.com/facebook/react/pull/15172
👋 Deprecate Module Pattern Components

Module pattern components take a fairly complex code path in React but are barely used outside of a few special places (like Relay Classic). This PR deprecates this pattern as also outlined in the RFC about createElement changes.
https://github.com/facebook/react/pull/15145
➡️ Shallow Renderer: Support React.memo()

React.memo() can now be used in the shallow renderer.
https://github.com/facebook/react/pull/14816
💊 Safely Access Cross-Origin Iframes

This contribution fixes an issue in Safari where a focused element within a cross-origin iframe caused an error to be always logged.
https://github.com/facebook/react/pull/15099
⚠️ ESLint: Warn About setState Directly in Dep-less useEffect

The ESLint rule for hooks now warns when setState is called without defining dependencies. This could easily lead to loops. This change is already out in eslint-plugin-react-hooks@1.6.0.
https://github.com/facebook/react/pull/15184
🏠 Compile Invariant Directly to Throw Expressions

React uses invariant() to assert correct behavior. In production, the error message is stripped out to keep the bundle size down. This PR reworks how this is handled.
https://github.com/facebook/react/pull/15071
🌅 Shallow Renderer: Implement setState for Hooks

The shallow renderer now supports calling the setState updater of useState() hooks outside of the render function.
https://github.com/facebook/react/pull/15120
📖 Docs: How Can I Measure a DOM Node?

The React Hooks FAQs now contain a new entry with information on how to best measure DOM nodes.
https://reactjs.org/docs/hooks-faq.html#how-can-i-measure-a-dom-node
🖱 Internal Event API Experiments Updates

While working on internal experiments for a new event API, the Core team added more scaffolding, a new react-events package, and logic for listening to event responders.
https://github.com/facebook/react/pull/15168
Add Feature Flag to Disable Yielding

A new feature flag was added that allows debug builds to disable yielding in Concurrent Mode.
https://github.com/facebook/react/pull/15119
📌 React v16.8.5 Patch Release

This release includes a improved warnings and support for newer features in the shallow renderer.
https://github.com/facebook/react/releases/tag/v16.8.5
🕹 Internal Event API Experiments Updates

This week added more parts to the internal event API experiments including event component responder surfaces and SSR support.

https://github.com/facebook/react/pull/15179
💃 Dancing Between State and Effects

James Long (jlongster) started a discussion about ways to combine effects and state changes. Feedback welcome!

https://github.com/facebook/react/issues/15240