You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a code base written mostly in Fable.React. I'm interested in using Feliz & Feliz.ViewEngine.
However, my existing code is using Fable.React's ReactDomServer to perform SSR. Adding Feliz, I would need to have a way to support both Fable.React-style code as well as Feliz.
I can imagine this might be out of scope, but .. can't hurt to ask, right? Is that something that is possible, or even reasonable?
The text was updated successfully, but these errors were encountered:
The README mentions this problem. The way I would think about this is that SSR is just HTML, or at least it will end up as HTML. So you can always wrap your Fable.React / Feliz code and use some translate function (e.g type prop extension) that uses prop.dangerouslySetInnerHTML (content: string) one way or the other. Then make sure what the client generates matches this HTML.
typepropwithstatic member inlinereact(content:ReactElement)=lettext=.../// Convert your Fable.React into a string
Interop.mkChildren [ Interop.createRawTextElement text ]
It's hard to add such a translate method for Fable.React to Feliz.ViewEngine without taking dependency to Fable.React so it's best to do it in the project that already have the dependency. But if you get it working we should document it to the README.
I have a code base written mostly in Fable.React. I'm interested in using Feliz & Feliz.ViewEngine.
However, my existing code is using Fable.React's ReactDomServer to perform SSR. Adding Feliz, I would need to have a way to support both Fable.React-style code as well as Feliz.
I can imagine this might be out of scope, but .. can't hurt to ask, right? Is that something that is possible, or even reasonable?
The text was updated successfully, but these errors were encountered: