how the js and css files are mapped to a component from ui.frontend?
how the js and css files are mapped to a component from ui.frontend?
how the js and css files are mapped to a component from ui.frontend?
There is no mapping is required. Using ClientLibs categories adding the JS and CSS under /apps/<project>/cleintlibs. And then while writing the css use a parent class name like cmp-<component_name> that work as prefix with all css and JS(ref screenshot 1 below).
Then in component html use the same prefix classname with all your classes. Like below screenshot 2.
screenshot 1:

screenshot 2:

Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.