Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const {
props: {
doc: { completed = false }
},
state: { editing, value }
} = this;
return (
<li>
<div>
<input type="checkbox" checked="{completed}">
<label>{value}</label>
</div></li>
className={classNames(
completed && styles.completed,
editing && styles.editing
)}
onDoubleClick={this.edit}
>
<div>
<input type="checkbox" checked="{completed}">
<label>{value}</label>
<button type="button">
</button></div>
<input value="{value}" type="text">
);
}
}
<div>
<input type="checkbox" checked="{completed}">
<label>{value}</label>
<button type="button">
</button></div>
<input value="{value}" type="text">
);
}
}
render() {
const {
props: {
doc: { completed = false }
},
state: { editing, value }
} = this;
return (
<li>
<div>
<input type="checkbox" checked="{completed}">
<label>{value}</label>
<button type="button"></button></div></li>
props: {
doc: { completed = false }
},
state: { editing, value }
} = this;
return (
<li>
<div>
<input type="checkbox" checked="{completed}">
<label>{value}</label>
<button type="button">
</button></div>
</li>
render() {
const {
props: {
doc: { completed = false }
},
state: { editing, value }
} = this;
return (
<li>
<div>
<input type="checkbox" checked="{completed}">
<label>{value}</label>
<button type="button">
</button></div>
</li>