Add JS-File to React Pluggable Web Widgets

Hello everyone,   I try to build a pluggable web widget. According to the tutorial this should be done with React. To add a behavior to the widget I need to add several JS-files. These files should be only loaded to the browser, so they should be used inside React. Now I found only one possibility to do this, but the final widget will be not pluggable ( How can I add external JS-files to the widget?
1 answers

You have to add your js using NPM