Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101492738
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
Mon, Feb 10, 23:49
Size
240 B
Mime Type
text/x-java
Expires
Wed, Feb 12, 23:49 (2 d)
Engine
blob
Format
Raw Data
Handle
24164169
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