I'm rebuilding a SP 2013-era EditForm.aspx web part using SPFx & React.
I would appreciate advice on how to get the query string into a SPFx web part.
I don't see any methods in the SharePoint Framework Reference; I apologize if I missed something.
I'm using React - its documentation leads to React-router, which seems overkill for just getting an item id, not to mention the struggle of changing the components at the root of the SPFx web part.
I've reviewed the PNP-JS-Core, and didn't find any help there either.
How are other people doing this?
window.location.href? Or even simpler withwindow.location.searchwhich gives you only the query string, but it is not supported below IE11 and some other old browser versions.