react
react copied to clipboard
The library for web and native user interfaces.
## Summary ## How did you test this change?
## Summary removed redundant character escape in RegExp ## How did you test this change? N/A
## Summary If your linting command encompasses `.json` or `.graphql` files (e.g. `eslint . package.json --ext .js,.jsx,.ts,.tsx,.graphql`), and you have react-compiler/react-compiler enabled in your rules object: ``` rules: { 'react-compiler/react-compiler':...
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #29118 Adds a todo for `for await` syntax. Closes #29113
React compiler inefficiently re-evaluates code when dependencies that do not affect the result have changed. Specifically, when the hook returns multiple values. Input code: ```ts export default function Test() {...
## Summary We need a feature like Vue's Keep-alive. Because this is often a basic requirement when developing SI. I really wish this was available by default with self-support.
Here's a failing test that demonstrates the issue as reported by @eps1lon in https://github.com/facebook/react/pull/29032#discussion_r1604250460. https://github.com/facebook/react/blob/3f1436cca1f8dd80a19fd52b97b6ff71a4d9ce82/packages/react-client/src/ReactFlightClient.js#L644 When the props object is frozen, the Flight Client's model resolver can't mutate the parent...
I was trying to port a bigger existing code base to react-compiler. I ran about the issue, that react-compiler requires all expressions used in event handlers to be always resolvable...
## Summary Fixes: https://github.com/facebook/react/issues/29120 Related: https://github.com/babel/babel/issues/9804 ## How did you test this change?
**Summary** This pull request aims to improve the grammar and parallel structure in the documentation for the React library. The motivation behind this change is to enhance readability and clarity...