Components with Actions
@ComponentState(TodoStateActions)
export class TodoDescription extends ReactComponentWithStateActions<any, any, TodoStateActions> {
render(){
return <div>{ this.actions.todoDescriptionAsync }</div>
}
}@ComponentState(TodoStateActions)
export class TodoDescription extends React.Component implements HasStateActions<TodoStateActions> {
actions: StorageStateActions;
statePath: any;
stateIndex?: string | number; // optional variable
render(){
return <div>{ this.actions.todoDescriptionAsync }</div>
}
}Last updated