dom-diff icon indicating copy to clipboard operation
dom-diff copied to clipboard

Accept string as second argument to mount()

Open treshugart opened this issue 8 years ago • 0 comments

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.

treshugart avatar Jan 10 '17 01:01 treshugart