I'm working on the react project. I created project with create-react-app. I need to import 'js-sequence-diagram' javascript file in my component. How can I import javascript min file in my component?
what I want to do is: https://github.com/zfanta/react-sequence-diagram
where "index.js" file "sequence-diagram-2.0.1.js" file was used. But I could not use it like that.
1- install it first using
npm install react-sequence-diagram
2- then just put import SequenceDiagram from 'react-sequence-diagram; where ever you want to use the component
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With