import { h, Component, createRef } from 'preact' import htm from 'htm' import { API } from 'api' const html = htm.bind(h) export class Notes2 { constructor() {//{{{ }//}}} render() {//{{{ return html` ` }//}}} treeGet() { const req = {} API.query('POST', '/tree/get', req) .then(response => { console.log(response) }) .catch(e => console.log(e.type, e.error)) } }