Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22397531
input-or-target.jsx
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
946 B
Referenced Files
None
Subscribers
None
input-or-target.jsx
View Options
var
React
=
require
(
'react'
);
var
PropTypes
=
React
.
PropTypes
;
var
TypingGolf
=
require
(
'../typing-golf-components.js'
);
var
InputOrTarget
=
React
.
createClass
({
render
:
function
()
{
// console.log(this.props)
if
(
this
.
props
.
is_active
)
{
return
(
<
div
onClick
=
{
this
.
props
.
onFocus
}
>
<
TypingGolf
.
Input
state
=
{
this
.
props
.
state
}
onBlur
=
{
this
.
props
.
onBlur
}
onChange
=
{
this
.
props
.
onChange
}
title
=
{
this
.
props
.
title
}
/>
<
/div>
)
}
else
{
return
(
<
div
onClick
=
{
this
.
props
.
onFocus
}
>
<
TypingGolf
.
Target
state
=
{
this
.
props
.
state
}
onBlur
=
{
this
.
props
.
onBlur
}
title
=
{
this
.
props
.
title
}
/>
<
/div>
);
}
}
});
module
.
exports
=
InputOrTarget
;
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Nov 27, 17:12 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1222660
Default Alt Text
input-or-target.jsx (946 B)
Attached To
Mode
rTG Typing Golf
Attached
Detach File
Event Timeline