0.0.1-beta.19 • Published 12 months ago
seqflow-js v0.0.1-beta.19
SeqFlow JS
SeqFlowJS is a JavaScript library for creating and managing frontend workflows. The core ideas are:
- Events over State Management
- Simplicity over Complexity
- Linearity over Complex Abstractions
- Explicitness over Implicitiveness
See the documentation for more information.
Installation
pnpm install seqflow-js
Usage
import { SeqflowFunctionContext } from "seqflow-js";
interface Quote {
author: string;
content: string;
}
async function getRandomQuote(): Promise<Quote> {
const res = await fetch("https://api.quotable.io/random")
return await res.json();
}
export async function Main(this: SeqflowFunctionContext) {
// Render loading message
this.renderSync(
<p>Loading...</p>
);
// Perform an async operation
const quote = await getRandomQuote();
// Replace loading message with quote
this.renderSync(
<div>
<div>{quote.content}</div>
<div>{quote.author}</div>
</div>
);
}
start(document.getElementById("root"), Main, undefined, {});
0.0.1-beta.18
1 year ago
0.0.1-beta.17
1 year ago
0.0.1-beta.19
12 months ago
0.0.1-beta.14
1 year ago
0.0.1-beta.13
1 year ago
0.0.1-beta.16
1 year ago
0.0.1-beta.15
1 year ago
0.0.1-beta.12
1 year ago
0.0.1-beta.11
1 year ago
0.0.1-beta.10
1 year ago
0.0.1-beta.9
1 year ago
0.0.1-beta.8
1 year ago
0.0.1-beta.7
1 year ago
0.0.1-beta.6
1 year ago
0.0.1-beta.5
1 year ago
0.0.1-beta.4
1 year ago
0.0.1-beta.3
1 year ago
0.0.1-beta.2
1 year ago
0.0.1-beta.0
1 year ago