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
import { usePageState } from 'zeb/react';

export const app = {};

export default function Page(input) {
  const state = usePageState();
  return (
<section className="tree-f">
  <h4>F Component</h4>
  <p>F reads shared value: <strong>{state.shared?.value ?? 0}</strong></p>
  <p>Last update: <span>{state.shared?.lastAction ?? 'init'}</span></p>
  <button onClick="tree.f.reset">Reset to Seed</button>
</section>
  );
}