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

240
Views
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 answers
Answer question

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 Report
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!