0

I have a .js file which will create Gauge meter component when used in html. Now want to use that .js file in React component. So what will be the way to import this .js file and use as component as below.

Javascript file
Gauge.js

Matthew Herbst
  • 29,477
  • 23
  • 85
  • 128
Vivek Singh
  • 151
  • 1
  • 2
  • 7

1 Answers1

0

change your .js file to a react class component or functional component and then export the file to your react component.