Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F10359927
app.jsx
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
962 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
.
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
,
selectionStart
:
event
.
target
.
selectionStart
,
selectionEnd
:
event
.
target
.
selectionEnd
});
},
render
:
function
()
{
return
(
<
div
>
"text"
:
{
this
.
state
.
text
}
<
br
/>
"start"
:
{
this
.
state
.
selectionStart
}
<
br
/>
"end"
:
{
this
.
state
.
selectionEnd
}
<
br
/>
<
Example
.
Field
text
=
{
this
.
state
.
text
}
selectionStart
=
{
this
.
state
.
selectionStart
}
selectionEnd
=
{
this
.
state
.
selectionEnd
}
handleChange
=
{
this
.
handleChange
}
/>
<
/div>
)
}
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 8, 03:14 (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1033654
Default Alt Text
app.jsx (962 B)
Attached To
Mode
rTG Typing Golf
Attached
Detach File
Event Timeline
Log In to Comment