Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22390137
solution.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
552 B
Referenced Files
None
Subscribers
None
solution.jsx
View Options
var
React
=
require
(
"react"
);
var
Solution
=
React
.
createClass
({
render
:
function
(){
if
(
this
.
props
.
is_loading
){
return
<
div
>
Waiting
for
the
server
response
...
<
/div>
}
else
if
(
this
.
props
.
solution
==
null
){
return
<
div
><
/div>
}
else
{
return
(
<
div
>
<
h3
>
The
shortest
solution
has
{
this
.
props
.
solution
.
length
}
steps
:<
/h3>
<
ul
className
=
"steps-list"
>
{
this
.
props
.
solution
.
map
(
function
(
el
){
return
<
li
><
kbd
className
=
"key"
>
{
el
.
desc
}
<
/kbd></li>
})}
<
/ul>
<
/div>
)
}
}
});
module
.
exports
=
Solution
;
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Nov 27, 15:25 (13 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1222432
Default Alt Text
solution.jsx (552 B)
Attached To
Mode
rTG Typing Golf
Attached
Detach File
Event Timeline