Skip to content

Patterns for incremental adoption #183

Description

@AlanFoster

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions