react
react copied to clipboard
The library for web and native user interfaces.
Whatever you type in the last focused input, that is getting stored in the chrome browsers heap memory in regex_last_match_info. Even the password is getting stored in plain text. How...
```js const [oneShow, setOneShow] = useState(false); const [twoShow, setTwoShow] = useState(true); return ( 插入节点错误 ({oneShow && '插入节点' }) { setOneShow(true) }}>触发 删除节点错误 ({twoShow && '删除节点' }) { setTwoShow(false) }}>触发 );...
## Summary Fixes #29018 Rather than continuing to maintain/fix a partial polyfill (e.g. #28056), just pass the `submitter` to the `FormData` constructor, since it is now [widely available](https://caniuse.com/?search=FormData.submitter). This ensures...
React version: canary ## Steps To Reproduce 1. Render the following: ```jsx console.log(new URLSearchParams(formData).toString())}> Vanilla ``` 2. Click on the image submit button [Link to code example](https://codesandbox.io/p/sandbox/admiring-yalow-77vwdy?file=%2Fsrc%2FApp.js) ## The current...
Remove 2 no longer existing files from inlinedHostConfig While looking for `.classic` forks, I noticed these files no longer exist.
In general, only backslashes escape things in CSS, while HTML entities are only treated by CSS as plain text. Despite this, `ReactDOMServer.renderToString` escapes HTML special characters (e.g. `&`, ``, `"`,...
Before this change, `useFormStatus` is only activated if a form is submitted by an action function (either `` or ``). After this change, `useFormStatus` will also be activated if you...
React version: 18.2.0 ## Steps To Reproduce 1. Clone https://github.com/vporton/react-undef-context 2. `yarn && npm start` 3. Click the button and watch console errors. (All of the sudden, a context object...
React version: 18.3.1 _(Also tested on React 19 and seems like it is fixed)_ ## Steps To Reproduce 1. Create 2 components: Parent and Child, where both components will throw...
I find there were many code place use 'type of xxx === 'object' && xxx !== null' I think should use a util function named `isObject` to optimize this behavior....