Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123536628
safeFindDOMNode.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, Jul 28, 03:21
Size
283 B
Mime Type
text/x-java
Expires
Wed, Jul 30, 03:21 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27722027
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
safeFindDOMNode.js
View Options
import
ReactDOM
from
'react-dom'
;
export
default
function
safeFindDOMNode
(
componentOrElement
)
{
if
(
componentOrElement
&&
'setState'
in
componentOrElement
)
{
return
ReactDOM
.
findDOMNode
(
componentOrElement
);
}
return
componentOrElement
!=
null
?
componentOrElement
:
null
;
}
Event Timeline
Log In to Comment