import createReactClass from 'create-react-class'
const Td = createReactClass({
render () {
return (
<td
onClick = { this.props.handleTdClick(item, e) }
key = { this.props.index }
className={this.props.item.state ===1 "empty" ? "not-empty" :}>
</td>
...
<Td {...props} />
<input type="radio"
value={this.state.result}
checked={this.state.check}
onChange={this.onSiteChanged} />
componentWillMount(){
if(this.props.listeningIsFavorite===true)
...
}else
"use strict";
const HideKeyboard=()=> {
//this set timeout
setTimeout(function() {
var field = document.createElement('input');
field.setAttribute('type', 'text');
field.setAttribute('style', 'position:absolute; top: 0px; -webkit-transform: translateY(-9999px); -webkit-user-modify: read-write-plaintext-only; left:0px;');
document.body.appendChild(field);
field.onfocus = function(){
setTimeout(function() {
field.setAttribute('style', 'display:none;');
setTimeout(function() {
document.body.removeChild(field);
document.body.focus();
}, 14);
}, 200);
};
field.focus();
}, 50);
};
export default HideKeyboard;
setAvatarState(image) {
this.setState({ avatars: image }, ()=>this.setState({ imageUploadIsOpen: !this.state.imageUploadIsOpen )}
}
<span>this.props.hlt</span> + this.props.else
bundle.js?ver=1.11:1Not allowed to load local resource: file:///C:/Users/.../facility.bundle.js
componentDidMount(){
var Facility;
require.ensure([], function(require) {
Facility = require('./Facility').default;
render(<Facility/>, document.getElementById('fl'));
}, 'facility');
}
render() {
return (
<div>
<div id="fl"></div>