Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F10361072
solution.jsx
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
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
text/plain
Expires
Sat, Nov 8, 10:52 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1033630
Default Alt Text
solution.jsx (552 B)
Attached To
Mode
rTG Typing Golf
Attached
Detach File
Event Timeline
Log In to Comment