Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!