dependabot[bot] on npm_and_yarn
Bump shell-quote from 1.7.2 to … (compare)
pakastin on gh-pages
Updates (compare)
pakastin on master
3.29.0 (compare)
pakastin on v3.29.0
3.29.0 (compare)
pakastin on master
Don't use DOM memoization (compare)
pakastin on gh-pages
Updates (compare)
dependabot[bot] on npm_and_yarn
Bump async from 2.6.3 to 2.6.4 … (compare)
import { text } from 'redom'
I mean..
import { text } from 'redom';
...
setChildren(elem, ['some text', var, 'more text'].map(text));
el('li', this._getChildElems())
and the child elems function returned a dynamic list of strings and elements. like ['Some text', el(...), 'some more text']
el
but not setChildren
, but I will use that text
function :)
setChildren
and mount
are helpers for appendChild
/insertBefore
, so they need Node / component..
el
is a bit different, since it's document.createElement
helper..
setChildren
as well..
api
along. Then I use that to trigger updates to the state.
router
is basically a view router, but it’s easy to use with push state or hashes:const path = location.hash.slice(1).split(’/’);
// i.e. #/info –> [’’, ’info’]
router.update(path[1], state); // ’info’, state