Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rodydavis committed Nov 21, 2023
1 parent c5d1202 commit 2650609
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ Based on the [following article](http://webcache.googleusercontent.com/search?q=

```dart
// Create signals
final count = createSignal(0);
final multiplier = createSignal(2);
final count = signal(0);
final multiplier = signal(2);
// Creating a computed value
final multipliedCount = createComputed(() {
final multipliedCount = computed(() {
return count.value * multiplier.value;
});
createEffect(() {
effect(() {
print('Effect called: Count is ${count.value} and multiplier is ${multiplier.value}');
});
Expand Down

0 comments on commit 2650609

Please sign in to comment.