Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22424240
app.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
805 B
Referenced Files
None
Subscribers
None
app.jsx
View Options
var
Example
=
{};
var
React
=
require
(
"react"
);
var
Router
=
require
(
"react-router"
);
module
.
exports
=
Example
;
// Example.Work = require('./work.jsx');
Example
.
Field
=
require
(
'./field.jsx'
);
Example
.
App
=
React
.
createClass
({
mixins
:
[
Router
.
State
,
Router
.
Navigation
],
componentDidMount
:
function
()
{
var
self
=
this
;
},
getInitialState
:
function
()
{
return
{
text
:
"Ala ma kota"
,
selectionStart
:
3
,
selectionEnd
:
7
};
},
handleChange
:
function
(
event
)
{
this
.
setState
({
text
:
event
.
target
.
value
});
},
render
:
function
()
{
return
(
<
div
>
<
strong
>
It
works
<
/strong>
<
Example
.
Field
text
=
{
this
.
state
.
text
}
selectionStart
=
{
this
.
state
.
selectionStart
}
selectionEnd
=
{
this
.
state
.
selectionEnd
}
handleChange
=
{
this
.
handleChange
}
/>
<
/div>
)
}
});
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sat, Nov 28, 03:55 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1230232
Default Alt Text
app.jsx (805 B)
Attached To
Mode
rTG Typing Golf
Attached
Detach File
Event Timeline