dom-diff
dom-diff copied to clipboard
Accept string as second argument to mount()
The mount()
function should additionally accept a string as the second argument which is a selector of the node to mount to. The first matched node in the document
should be used, so document.querySelector(str)
. If no node is found, then it should throw an error saying as much.