Search
⌃K

Javascript

Code

export function handle(state, action) {
state.counter++;
return { state }
}

Deployment

$ exm function:deploy --src function.js --init-state '{"counter": 0}' --token MY_EXM_TOKEN

Interaction

$ exm function:write [functionId] --input '{}' --token MY_EXM_TOKEN
// { state: { counter: 2 } }