My use case is to integrate headwayapp.co to my React application.
I am trying to inject js via react component
The code of headwayapp is as follows to inject
<script src="//cdn.headwayapp.co/widget.js"></script>
<script>
var config = {
selector: ".CHANGE_THIS",
account: "ACCOUNT_ID"
};
Headway.init(config);
</script>
Though I tried multiples way to inject code into the react.
In most cases I am not able to understand how to handle the line
Headway.init(config);
as react is not able to understand what is Headway variable ?