Created
May 21, 2014 01:44
-
-
Save domkm/de0307b8593a90ef9faa to your computer and use it in GitHub Desktop.
TypeError: Cannot read property 'firstChild' of undefined
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn render-str [el] | |
(dom/render-to-str | |
(om/build | |
(fn [data owner] | |
(reify | |
om/IRender | |
(render [_] el))) | |
{}))) | |
(render-str (dom/div nil)) | |
;;=> "<div data-reactid=\".19\" data-react-checksum=\"-1690171002\"></div>" | |
(render-str (dom/form nil)) | |
;;=> #<TypeError: Cannot read property 'firstChild' of undefined> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment