fyr.jsPreparing the runtime
← All examples

Example

Counter

Reactive state, methods, text bindings, and an intentional small UI.

Reactive stateComputed labelsEvent handlers
COUNT

Fyr.createApp("counter", {
  state: { count: 0 },
  methods: {
    increment() { this.state.count += 1; }
  }
});