dillon1000/react
Commit
Browse files [react-interactions] Press with useRef instead of useState (#16870)
We only need to read and modify the value for the lifetime of the hook
Changed paths2 files
First-parent comparisonpackages/react-interactions/events/src/dom/Press.js ModifiedM packages/react-interactions/events/src/dom/testing-library/domEvents.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…