Skip to content

Commit

Permalink
docs: Fixing a missing import in an example (preactjs#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian authored Sep 9, 2022
1 parent 62439c9 commit f0608e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ name.value = "John";
You can destroy an effect and unsubscribe from all signals it was subscribed to, by calling the returned function.

```js
import { signal, effect } from "@preact/signals-core";
import { signal, computed, effect } from "@preact/signals-core";

const name = signal("Jane");
const surname = signal("Doe");
Expand Down

0 comments on commit f0608e3

Please sign in to comment.