rxs 0.1.0 copy "rxs: ^0.1.0" to clipboard
rxs: ^0.1.0 copied to clipboard

outdated

A simple library for composing states inspired by the reactivity system of Solid.js.

example/rxs_example.dart

import "package:rxs/rxs.dart";

void main() {
  final (augend, setAugend) = signal(0);
  final (addend, setAddend) = signal(0);

  effect(() {
    final sum = augend() + addend();

    if (sum % 2 == 0) {
      print("even!");
    } else {
      print("odd.");
    }
  });

  setAugend(1);
  setAddend(1);
}
1
likes
0
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

A simple library for composing states inspired by the reactivity system of Solid.js.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

rxdart

More

Packages that depend on rxs