I have created a footer using custom js which fetches all the terms inside the termstore and displays it in the footer for the page and I have referenced the custom js and css files in the custom masterpage for SharePoint Online. This works well for classic pages. How can I use the js for creating the footer for modern pages using SPFX. I have created a basic footer using the link:
How can I enhance it to use the custom js to get terms from the termset and display it in the footer.