SharePoint Framework and the missing script and/or content editor web part. Here are three sources to learn about how you could roll your own:
Tech and me: Perhaps the only SharePoint Framework web part you will ever need
Perhaps The Only OTHER SharePoint Framework Web Part You Will Ever Need
Converting your CEWP Customizations to the SharePoint Framework