react
react copied to clipboard
The library for web and native user interfaces.
I have a component called `MyWillUnmount` that uses a custom hook called `useLocalStorage`. ```tsc const emptyArray = []; const MyWillUnmount = () => { const [] = useLocalStorage('KEY',[]); ... }...
## Summary ## How did you test this change?
React version:18.2.0 ## Steps To Reproduce 1. Click the "Click Me" button multiple times 2. Create heap snapshot on chrome and search for all objects with class name "Props"(test class...
React version:18.0.2 ### react render executed twice useReducer returns the state itself, but still executes one more time ## Steps To Reproduce ```ts const DemoUseState = () => { const...
Issue with react-dom, consistently with Chrome 87 Cannot use 'in' operator to search for 'data' in null In `getDataFromCustomEvent`: if (typeof detail === 'object' && 'data' in detail) { The...
**Components built with Portals include accessibility defects leading to poor usability/task abandonment.** During accessibility audits and usability testing of Shopify components, we’ve noticed a prominent defect with components built with...
### Website or app https://studio-test-2.netlify.app/ ### Repro steps click "Components" tab click on component click "parse hook names" ### How often does this bug happen? Every time ### DevTools package...
React version: 18.0.0 ## Steps To Reproduce 1. Server side render with an inline script inside Suspense component: ```jsx some async text ``` 2. And `'measure'` will be logged before...
React version: 18.0.0 ## Steps To Reproduce 1. set up a local variable 'ignore' in useEffect as doc https://beta.reactjs.org/learn/synchronizing-with-effects#how-to-handle-the-effect-firing-twice-in-development introduced. 2. check the console Link to code example: codepen links...
**Do you want to request a *feature* or report a *bug*?** BUG (possible) in `eslint-plugin-react-hooks` **What is the current behavior?** When I'm in CodeSanbox using a React Sandbox I can...