-
-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Hi there; When generating the superglue boilerplate for rails, this file is created by default:
const appEl = document.getElementById("app")
// ...
root.render(
<Application
..
/>
)Currently the implementation renders a single "app" on the page powered by superglue; the question is - are there any patterns or recommendations for handling incremental adoption in legacy applications? i.e. having maybe 2 or 3 smaller components that are still powered by superglue's single store, such as some smaller graph components, or different forms, that exist in independent locations within disparate locations in the DOM; i.e. multiple apps powered by the same state etc, or would this be considered an anti-pattern/hit edgecases with implementation details/assumptions? The end goal would of course be a single app, but interested in learning if there are any incremental adoption techniques. Thanks!