Added the ability to compose with needing dom

#11 fixes
@lancejpollard