react
react copied to clipboard
The library for web and native user interfaces.
## Summary 1. Add option `checkAsyncFor` to configure which effect hooks should be checked for async callbacks 2. Fix position/index of `dependencies` parameter in hooks. Dependencies are usually the last...
## Summary `yarn debug-test` is now deprecated in React package.json. It has been replaced by `yarn test --debug`. ## How did you test this change? I've tried in both a...
When config.key is not undefined, there is no reason to set key to maybeKey.
We have a custom hook, `useAsyncEffect`, which works like `useEffect` except it accepts an async function. We would like to check the deps of this function using `exhaustive-deps`, but that...
Let's add this hook as part of the core. Since this is a common need, many people often ask the question "Why does useEffect not sense ref.current changes?" ```js //...
To use a Web Component in React, you must directly attach an event listener to the React ref for that WC. We could change the implementation so that when React...
Stacked Diff. Only look at [this commit](https://github.com/facebook/react/pull/24955/commits/3c7850bddb6e897f409e7e9a62f639dcdb35887d) --- When a child suspense boundary that was added during the transition is deleted is deleted: * Add `{type: 'suspense', name: boundaryName |...
Currently, the `react-dom` and `react-art` packages each have their own copy of `react-reconciler` compiled into them. This means, if you use them together, you get two copies bundled in your...
Here top level errors looks a bit confusing for the developers.further they are directed to rules of hooks page and it mentions that "Hooks are called only at the top...
When react is inside an iframe, chrome extension for react devtools fails to detect react. This is because the extension sets `__REACT_DEVTOOLS_GLOBAL_HOOK__` only on the top level window. Apparently it's...