Skip to content

Commit

Permalink
update README to fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Nov 28, 2023
1 parent cc0b8af commit b8e44a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,10 @@ Here's an example that shows a custom element that starts effects on connected,
and cleans them up on disconnect:

```js
import {reactive, signal, Effectful} from 'classy-solid'

@reactive
class CounterDisplay extends HTMLElement {
class CounterDisplay extends Effectful(HTMLElement) {
@signal count

get double() {
Expand Down

0 comments on commit b8e44a2

Please sign in to comment.