Recommened approach for gradual adoption within a React app #4345
Unanswered
Adjective-Object
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
I'm exploring embedding dioxus components within an existing large React-based webapp. My first thought was that doing a component-by-component migration to gradually adopt dioxus within the app could be viable.
From some skimming of the existing code, I think my approach would be to modify this IPC class from dioxus-liveview so it wasn't an obligate singleton accessing the global window.interpreter. Call it
InstancedIPC
From there, I could create some
DioxusComponent
in React that creates an instanced interpreter, and renders that component subtree with dioxus as alayoutEffect
in React.My first set of thoughts is:
MyCustomButton
which is used throughout the app).What do y'all think of this approach? I'm assuming I'm missing some footguns here, which is a big part of why I'm opening the thread.
Beta Was this translation helpful? Give feedback.
All reactions