zebflow 0.11.14

Reactive web automation platform — pipelines, templates, and real-time collaboration in a single binary.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { usePageState } from 'zeb/react';

export const app = {};

export default function Page(input) {
  const state = usePageState();
  return (
<section className="tree-c">
  <h4>C Component</h4>
  <button onClick="tree.c.inc">Increment Shared</button>
  <button onClick="tree.c.dec">Decrement Shared</button>
  <p>Current: <span>{state.shared?.value ?? 0}</span></p>
  <p>Double (memo): <span>{state.shared?.double ?? 0}</span></p>
</section>
  );
}