My requirement is to add two script tags to my react component where the variables used in first script is referenced in second script.
<script type="text/javascript" language="javascript">
var aax_size='300x250';
var aax_pubname = XXXXXXXX;
var aax_src=XXXXXX;
</script>
<script type="text/javascript" language="javascript" src="http://c.amazon-adsystem.com/aax2/assoc.js"></script>
Including the first script in index.html and including the second script in component enables the iframe to work properly. But using it in multiple components with different values is not working as the first script is in the index.html
Added the script in component using this way: https://stackoverflow.com/a/34425083/3991377