{
Simplest option: add following to your html file:
<script src="https://unpkg.com/uport-connect/dist/uport-connect.min.js"></script>
add following to the top of the component where you want to access functions in uPort library:
declare var uportconnect: any;
then use following to connect to uport:
const uport = new uportconnect.Connect('MyDApp')
uport.requestAddress().then((address) => {
console.log(address)
})