2020-07-07 15:21:49 +02:00
# Reference
2021-03-31 05:51:55 +02:00
## API
- [`h()` ](api/h.md ) creates a virtual DOM node (VNode) that gets rendered.
- [`text()` ](api/text.md ) turns a string into a VNode.
- [`app()` ](api/app.md ) initializes a Hyperapp app and mounts it.
- [`memo()` ](api/memo.md ) creates a special VNode that is lazily rendered.
## Architecture
- [State ](architecture/state.md ) represents your application's data.
- [Views ](architecture/views.md ) represent your state visually.
2021-05-04 13:12:00 +02:00
- [Actions ](architecture/actions.md ) cause state transitions and trigger effects.
- [Effects ](architecture/effects.md ) are triggered by actions to interact with external processes.
2021-03-31 05:51:55 +02:00
- [Subscriptions ](architecture/subscriptions.md ) dispatch actions in response to external events.
- [Dispatch ](architecture/dispatch.md ) controls action dispatching.
2022-12-28 02:15:48 +01:00
[Flowchart](architecture/flowchart.md) showing the general flow of a hyperapp app.
2022-02-23 01:33:41 +01:00
2021-03-31 05:51:55 +02:00
< h2 title = "“I’ d like to think of browsing the glossary as flipping pages in a book. I can go anywhere instantly and learn whatever suits my fancy.” ―@icylace" > Glossary< / h2 >
- [Action ](architecture/actions.md ): An app behavior that transitions state and invokes effects.
- [Action Descriptor ](architecture/actions.md#payloads ): A tuple representing an action with its payload.
- [Component ](architecture/views.md#components ): A view with a specific purpose.
- [Dispatch Function ](architecture/dispatch.md#dispatch ): The process that executes actions, applies state, and calls effects.
- [Dispatch Initializer ](architecture/dispatch.md#dispatch-initializer ): A function that controls dispatch.
2021-05-04 13:12:00 +02:00
- [Effect ](architecture/effects.md ): A generalized encapsulation of an external process.
- [Effecter ](architecture/effects.md#effecters ): A function that carries out an effect.
2021-03-31 05:51:55 +02:00
- [Event Payload ](architecture/actions.md#event-payloads ): A payload specific to an event.
- [Memoization ](architecture/views.md#memoization ): In Hyperapp, the delayed rendering of VNodes.
- [Mount Node ](api/app.md#node ): The DOM element that holds the app.
- [Payload ](architecture/actions.md#payloads ): Data given to an action.
- [State ](architecture/state.md ): The unified set of data your Hyperapp application uses and maintains.
- [State Transition ](architecture/state.md#state-transitions ): An evolutionary step for the state.
- [Subscriber ](architecture/subscriptions.md#subscribers ): A function that carries out a subscription.
- [Subscription ](architecture/subscriptions.md ): A binding between the app and external events.
- [Top-Level View ](architecture/views.md#top-level-view ): The main view which is given the state.
- [VDOM ](architecture/views.md#virtual-dom ): The virtual DOM, an in-memory representation for the DOM of the current page.
- [View ](architecture/views.md ): A function describing the desired DOM, represented by a VNode, as a function of the current state.
- [Wrapped Action ](architecture/actions.md#wrapped-actions ): An action that is returned by another action.