Optional
props: null | Partial<Merge<(...)[(...)], { style?: ...; dataset?: ... }>>Optional
children: null | string | Node | (string | Node)[]h('div'); // <div></div>
h('div', { className: 'psytask-center' }); // <div class="psytask-center"></div>
h('div', { style: { color: 'red' } }); // <div style="color: red;"></div>
h('div', { dataset: { id: 'my-div' } }); // <div data-id="my-div"></div>
h('div', null, 'text'); // <div>text</div>
h('div', null, h('p')); // <div><p></p></div>
h('div', null, ['text', h('p')]); // <div>text<p></p></div>
Creates HTML element, shortcut of document.createElement.