Compile the project by npm build or whatever.
And then add it to like an HTML folder and in your fxmanifest you will want to add all the compiled files and the main HTML file.
ui_page "client/build/index.html"
files {
'client/uisrc/build/**/*'
}
You can listen for events as you normally would in a normal UI in your JS file; inside the component.