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

241
Vistas
How do you call functions from node_modules

I'm creating a ReactJS app and I'm using an npm package (https://www.npmjs.com/package/react-video-recorder) The package allows you to customize the UI, etc. as stated in the ReadMe (https://github.com/fbaiodias/react-video-recorder).

Within the node_modules package, there are functions like onStartRecording, onStopRecording, etc. If I use the default button that comes with the package, it can call onStartRecording, onStopRecording with no problems.

When I create my own record and stop buttons I have no clue how to get access to onStartRecording and onStopRecording. I would really like to use my own custom buttons because there is more that I want to do when I start or stop recording.

Here's a link to all the functions and actions from the npm package (https://github.com/fbaiodias/react-video-recorder/blob/master/src/defaults/render-actions.js)

Any help pointing me in the right direction would be extremely helpful. Thanks

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

you can have a base component for record library component and then have your custom button to import that base component and add more stuff to it.

about 4 years ago · Juan Pablo Isaza Denunciar
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