react
react copied to clipboard
The library for web and native user interfaces.
## Summary Vite is one of the most popular bundlers used to build React apps. This PR is adding a vite integration for React server components. It would be shame...
**Do you want to request a _feature_ or report a _bug_?** Feature **What is the current behavior?** Custom component's properties are always set as attribute. **What is the expected behavior?**...
~React~ eslint-plugin-react-hooks version: 4.6.0 ## Steps To Reproduce 1. Write a function with a bunch of conditionals, and a React hook. 2. Run the rules-of-hooks linter. (For example, add an...
## Summary This pull request allows Hooks specified in react-hooks/exhaustive-deps additionalHooks have a callback parameter in a position other than 0. In my case, I have a hook where the...
I have a `button` that triggers `scrollIntoView` for a node when clicked. It also updates some state which subsequently disables that button in certain cases. If the button becomes disabled,...
## Summary As described in issue [#28897](https://github.com/facebook/react/issues/28897), there is currently no reliable API for a class component to be updated in SyncLane. This API is desired when a class component...
## Summary I've been working on updating the types for react-reconciler, and found methods are still missing from its README after recent updates. These are detailed in https://github.com/pmndrs/react-three-fiber/pull/3242 based on...
## Summary Added an utility function to sanitize the string before displaying it in tree Finishes #28984 ## How did you test this change? Added test cases for the utility...
## Summary Sets up dynamic feature flags for `disableStringRefs`, `enableFastJSX`, and `enableRefAsProp` in React Native (at Meta). ## How did you test this change? ``` $ yarn test $ yarn...
### Summary I was reading the source for `useReducer` and I noticed the returned array is always re-allocated. I figured it could be nice to reuse the value if there...