JSFiddle - React, Tailwind, and code Playground

by João Vitor Scheuermann

JavaScript

function ActionManager () {
 		
    let ACTIONS = [];
    	
 		this.subscribe = () => {};
    this.do = () => {};
 }
 
 
 
 function ActionX (done, abort, data) {
 		const ACTION_NAME = "NOME DA AÇAO AQ";
    
    let _data = data; 
    
    if(true) {
    		done("some data to the next action");
    } else {abort(ACTION_NAME, "why the action is aborting")}
 		
 }