Additional JavaScript Files
In addition to the JavaScript file that creates the HTML element, a component’s folder can contain other JavaScript files. Use these JavaScript files to structure code in UI components, and share code from API module components.
These additional JavaScript files must be ES6 modules and must have names that are unique within the component’s folder.
Export functions and variables in the JavaScript files so they can be imported by the component’s main JavaScript file.
See Also