Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

206
Visualizações
How can i Mount / Load a child NextJs app inside a parent NextJs app on button click

I am stuck in this problem. I have two Next Js applications.

  1. Parent App - served from parent.com domain.
  2. Child App - served from child.parent.com sub-domain.

The parent app has two pages:

  1. dashboard - /dashboard
  2. About - /about

Both of the pages share a common left sidebar via Layout Component.

const Layout = ({ children }) => {
    return (
        <>
            <Sidebar />
            <main className={styles.mainBody}>{children}</main>
        </>
    )
}

The sidebar component has following stucture:

const Sidebar = () => {
    return (
        <>
            <ul>
               ...page parent page links here
               <li><Link href="/child-app" > Load Child App </Link></li>
            </ul>
        </>
    )
}

Requirement: When the Load Child App link is cliked, the Parent app shall Load/Mount the Child app inside a placeholder which is on the right side of sidebar. Once the Child app is loaded/mounted, the user will interact with it normall.

Pls refer to the Layout image: layout image

Is it possible to acheive this with NextJs and if yes what is the approach i can take and what is the concept behind it ?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda