An open API service indexing awesome lists of open source software.

https://github.com/allevo/seqflow-js

Fresh javascript framework for Frontend
https://github.com/allevo/seqflow-js

front-end-development frontend frontend-framework

Last synced: 11 months ago
JSON representation

Fresh javascript framework for Frontend

Awesome Lists containing this project

README

          

# SeqFlow JS

This framework is a lightweight, domain-driven front-end framework designed to simplify web application development, reduce complexity, and enhance user experience with an event-driven architecture.

See the [documentation](https://seqflow.dev) for more information.

## Installation

```bash
pnpm install @seqflow/seqflow
```

## Usage

```tsx
import { Contexts } from "@seqflow/seqflow";

interface Quote {
author: string;
content: string;
}

async function getRandomQuote(): Promise {
const res = await fetch("https://quotes.seqflow.dev/api/quotes/random")
return await res.json();
}

export async function Main({}, { component }: Contexts) {
// Render loading message
component.renderSync(

Loading...


);

// Perform an async operation
const quote = await getRandomQuote();

// Replace loading message with quote
component.renderSync(


{quote.content}

{quote.author}


);
}

start(document.getElementById("root"), Main, {}, {});
```

## License

SeqFlow JS is licensed under the [MIT License](LICENSE).