You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useRef returns a mutable ref object whose .current property is initialized to the passed argument (initialValue). The returned object will persist for the full lifetime of the component.
Activity
Genzhen commentedon Jun 22, 2020
1)React 16.x的三大新特性 Time Slicing, Suspense,hooks
2)React16.8
3)React16.9
4)React16.13.0
GolderBrother commentedon Jul 20, 2020
cr useRef 每次都会返回相同的引用。
Genzhen commentedon Jul 21, 2020
@GolderBrother 这个是的,官网文档中有
useRef returns a mutable ref object whose .current property is initialized to the passed argument (initialValue). The returned object will persist for the full lifetime of the component.
qing25184 commentedon Mar 12, 2021
1