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

386
Views
¿Cómo agrego el complemento React externo a una página HTML existente?

Estoy tratando de incluir un gran calendario de reacción en mi página web ( https://openbase.com/js/react-big-calendar ). Todos los ejemplos que he visto tienen salida a index.html, pero estoy tratando de agregarlo a una página jsp existente que tengo. He visto ejemplos de agregar componentes de reacción a páginas html usando la etiqueta y document.querySelector(), pero mi problema es que cuando pego

 import { Calendar, momentLocalizer } from 'react-big-calendar' import moment from 'moment' const localizer = momentLocalizer(moment) const MyCalendar = props => ( <div> <Calendar localizer={localizer} events={myEventsList} startAccessor="start" endAccessor="end" style={{ height: 500 }} /> </div> )

en un archivo js e incluirlo como un script, dice "No se puede usar la declaración de importación fuera de un módulo". ¿Cómo puedo agregar este componente a mi página web?

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!