react-helix-examples

Examples for react-helix library.

Usage no npm install needed!

<script type="module">
  import reactHelixExamples from 'https://cdn.skypack.dev/react-helix-examples';
</script>

README

react-helix-examples

Examples for react-helix library.

Installation

git clone https://github.com/mysticatea/react-helix-examples.git
cd react-helix-examples

Usage

npm start

And please open:

  • http://localhost:3000/todos/

Todos

Todos

Overview

Minimal TODO management application.

A keypoint is the way to use AgentComponent::request method.

  1. First, we import actions to use.
import {updateTodoTitle} from "../action/TodoApp";
  1. Next, we write a class that inherits from AgentComponent.
export default class TodoItem extends AgentComponent {
  1. Lastly, we use this.request method with toghether the action and parameters.
this.request(updateTodoTitle, id, value);

That's all, basically.

See Also: react-helix

Class Diagram

Class Diagram