react-helix-examples
v1.0.0
Published
Examples for react-helix library.
Maintainers
Readme
react-helix-examples
Examples for react-helix library.
Installation
git clone https://github.com/mysticatea/react-helix-examples.git
cd react-helix-examplesUsage
npm startAnd please open:
- http://localhost:3000/todos/
Todos

Overview
Minimal TODO management application.
A keypoint is the way to use AgentComponent::request method.
- First, we import actions to use.
import {updateTodoTitle} from "../action/TodoApp";- Next, we write a class that inherits from
AgentComponent.
export default class TodoItem extends AgentComponent {- Lastly, we use
this.requestmethod with toghether the action and parameters.
this.request(updateTodoTitle, id, value);That's all, basically.
See Also: react-helix
