Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100955525
usePreviousProps.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 4, 07:01
Size
240 B
Mime Type
text/x-java
Expires
Thu, Feb 6, 07:01 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24060852
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
usePreviousProps.js
View Options
import * as React from 'react';
var usePreviousProps = function usePreviousProps(value) {
var ref = React.useRef({});
React.useEffect(function () {
ref.current = value;
});
return ref.current;
};
export default usePreviousProps;
Event Timeline
Log In to Comment