I have a bit of an odd use case for a react app, I'd like to provide a root URL to the app based on a parameter on the element we mount the react app on.
ReactDOM.render(<MyGoodApp />, document.getElementById('root'));
Where in the HTML DOM I have
<div id="root" data-param="https://website.biz/api/"></div>
I can't find anything particularly in the documentation that covers this case. I'm constrained in deploying this app due to business constraints so need to pass the value in this way or a similar way if possible. The value will be dynamic.