Require the file on your project (using a bundler like webpack):
constjacklog=require('jacklog-interactor');
Send an action:
constaction={name: 'super-awesome-action-event',// properties is not required but when in, it needs to be an objectproperties: {// you can send here whatever you want...userId: 'zed'}};// since the system debounces, send action promise resolve// will return all the actions that went throughconstsentActions=awaitjacklog.sendAction(action.name,action.properties);