-
Notifications
You must be signed in to change notification settings - Fork 5
Support for Server Rendering? #3
Comments
Hey @jaredpalmer!
|
@jaredpalmer checkout new 1.0.0 version. Should work with SSR :) |
Yes!!!! YOU ARE AWESOME! import convert from 'jsxfromhtml/lib/convert'
...
function myPage ({html}) => (
<div>
{convert(html, {}, '', '')}
</div>
) |
@jaredpalmer hmmm, why are you not using |
Because https://github.com/RafalFilipek/jsxfromhtml/blob/master/src/index.js#L42 |
Also there is a weird issue with how you are declaring you module for npm. I use webpack on both server and client, and use
If i comment out these lines from the package.json, everything works fine.
Thoughts? |
Ad. SSR: Ad. second problem ... looks like you have to parse |
No description provided.
The text was updated successfully, but these errors were encountered: