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.
import Diagram from './sequence-diagram-2.0.1'somewhere in your code, and that you are confident you have the correct file paths and access to the library. It would be helpful if this information were included in your question, but the most helpful thing would be enough code to provide a "minimal, complete, and verifiable example" (stackoverflow.com/help/mcve) of the problem you are experiencing so we can answer usefully.