Skip to content

Latest commit

 

History

History

component

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Component

Define a component and run it as a plain function.

Level: Basics · Concept: Components

flowchart LR
  input(["'hello, astack'"]) --> U[Uppercase.run] --> output(["'HELLO, ASTACK'"])
Loading

What it shows

  • A component extends Component and overrides run().
  • run() is standalone mode. The same class also works inside a pipeline, as the next example shows.

Run

# Once, from the repository root
pnpm install && pnpm build

pnpm --filter @astack-examples/component start

The full program is index.ts.

Next: Pipeline