Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

210
Vistas
How to render html tag returned from third party webpack bundle inside NextJS

I have a third party webpack bundle that injects html inside <app><app/>

This is the React implementation

import "./bundle.js";
function Appp() {
  return <app />;
}

How do I achieve this on NextJS using Client Side rendering. These are the things I have tried

  1. Dynamic Imports
//component
import  './editors/scripts/paperbits'
const Editor =()=>{
    return(
        <app/>
    )
    }
export default Editor

//index.js
const Editor = dynamic(() =>
  import('../editor'),
  { ssr: false }
  
)
export default function Home() {
  return (
    <div><Editor/></div>
 )
}

In this the script is loading but its not injecting the html

The only thing that works was adding the script and tag to _document.js

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda