Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
} from 'hybrids';
const onchange = (host, event) => {
dispatch(host, 'checked', {
detail: parseInt(host.index)
});
};
const onclick = (host, event) => {
dispatch(host, 'removed', {
detail: parseInt(host.index)
});
};
const TodoItem = {
text: property('text'),
checked: property('checked'),
index: property('index'),
render: ({
text
}) => html `
<style>
:host {
display: block;
}
li.item {
font-size: 24px;
display: block;
position: relative;
border-bottom: 1px solid #ededed;
}</style>
const onchange = (host, event) => {
dispatch(host, 'checked', {
detail: parseInt(host.index)
});
};
const onclick = (host, event) => {
dispatch(host, 'removed', {
detail: parseInt(host.index)
});
};
const TodoItem = {
text: property('text'),
checked: property('checked'),
index: property('index'),
render: ({
text
}) => html `
<style>
:host {
display: block;
}
li.item {
font-size: 24px;
display: block;
position: relative;
border-bottom: 1px solid #ededed;
}
</style>
const onchange = (host, event) => {
dispatch(host, 'checked', {
detail: parseInt(host.index)
});
};
const onclick = (host, event) => {
dispatch(host, 'removed', {
detail: parseInt(host.index)
});
};
const TodoItem = {
text: property('text'),
checked: property('checked'),
index: property('index'),
render: ({
text
}) => html `
<style>
:host {
display: block;
}
li.item {
font-size: 24px;
display: block;
position: relative;
border-bottom: 1px solid #ededed;
}
li.item input {</style>