hyperscript icon indicating copy to clipboard operation
hyperscript copied to clipboard

hscript string to virtual node?

Open chrisabrams opened this issue 10 years ago • 1 comments

You recommend the html2hscript tool for taking html to hyerscript. This tools retuns a string, where your library runs as a function. How can I take the string returned by html2hscript and get the same output as running h(whatever)?

chrisabrams avatar Oct 09 '15 16:10 chrisabrams

can you post this issue on html2script? I don't really know much about it I just link to it because it's part of the hyperscript ecosystem... But, i think you need to run that file as javascript... maybe with var h = require('hyperscript'); at the top?

dominictarr avatar Oct 10 '15 00:10 dominictarr