Page MenuHomeSealhub

solution.jsx
No OneTemporary

solution.jsx

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

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)

Event Timeline