New mount api
matthewp opened this issue · comments
Matthew Phillips commented
Just something I've been thinking about:
import sheet, { mount } from 'https://cdn.corset.dev/0.4.0/main.js';
mount(document, class {
constructor() {
this.count = 0;
}
bind() {
let { count } = this;
return sheet`
.counter {
text: ${count};
}
`;
}
});
More verbose but also simpler. TBD
Matthew Phillips commented
Closed by #75