Custom JS Module
Categories
Component ID
2929070
Component name
Custom JS Module
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This is an example module which shows the implementation of integration of your Javascript files (JS, JSx, etc.)
All you need to do is edit the my.js file and add your javascript code.
If you want to add more js files, keep adding them in the same location of my.js and add it in the js_block.libraries.yml file.
And you're all ready to enjoy your custom JS script on your drupal site without any hassle.