fable-compiler / Fable.Lit

Write Fable Elmish apps with Lit
https://fable.io/Fable.Lit/
MIT License
91 stars 13 forks source link

Update Fable.React and Feliz Bindings #74

Open OnurGumus opened 1 year ago

OnurGumus commented 1 year ago

Newer versions aren't compatible and Fable.Lit.React and Fable.Lit.Feliz are somewhat outdated now.

leolorenzoluis commented 1 year ago

@OnurGumus Outside topic: Do you actually combine Fable.React with Fable.Lit? Curious as to why?

OnurGumus commented 1 year ago

Why not? There are some nice react components to use there. For example https://github.com/pmndrs/react-three-fiber

OnurGumus commented 1 year ago

In case anyone want to use this, the following gist works good for latest react 18 https://gist.github.com/OnurGumus/1086289d18b6b37f45a4b0a679a00949

leolorenzoluis commented 1 year ago

@OnurGumus I've had issues integrating the lifecycle between Lit as the host component and using react components. No problem with passing the actual real value down to the React components, but for some libraries it doesn't trigger a notification change even if the state actually changed.