Although not officially, but now you can use script editor in SharePoint modern pages using SharePoint Framework web part. Here is the GitHub link for the same.
Also, there are host of various other SharePoint Framework samples you can use.
Enjoy scripting...