Closed colinmeinke closed 7 years ago
There is no reason Wilderness needs to be doing querySelector work. It can just be passed a DOM node instead.
querySelector
render({ selector: 'svg' }, circle)
Becomes:
const el = document.querySelector('svg') render({ el }, circle)
Same goes for shape function.
shape
shape({ selector: 'path' })
const el = document.querySelector('path') shape({ el })
Closed in next cbc2211676db693d3659326912e939ba53ff4b2f
There is no reason Wilderness needs to be doing
querySelector
work. It can just be passed a DOM node instead.Becomes: