Closed manzt closed 2 months ago
Latest commit: 4003abe8491e49a05ec6477e63d258ac8f9610c6
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Wraps
model
into a signal-ed interface. Works with any signal framework.export default signalify(signal, { render({ model, el }) { let btn = document.createElement("button"); // model.count is a getter/setter for a signal btn.addEventListener("click", () => model.count += 1); effect(() => { btn.innerText =
Count is ${model.count}
; }); el.appendChild(btn); } })