Skip to content

Commit

Permalink
revert: remove a wrong usage
Browse files Browse the repository at this point in the history
wibus-wee committed Dec 16, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f3f5620 commit 15d0479
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions packages/jwc-reactively/src/reactive.ts
Original file line number Diff line number Diff line change
@@ -16,19 +16,4 @@ export function reactive<T extends Object>(target: T): T {
return true;
}
});
}

// Usage
// const state = reactive({ count: 0 }, 'count');
// state.count = 1;
// console.log(state.count); // 1

// Use in web component
// class MyElement extends HTMLElement {
// constructor() {
// super();
// this.state = reactive({ count: 0 }, 'count');
// this.state.count = 1;
// console.log(this.state.count); // 1
// }
// }
}

0 comments on commit 15d0479

Please sign in to comment.