import ScriptTag from 'react-script-tag'; const Demo = props => ( <ScriptTag type="text/javascript" src="/path/to/resource.js" /> )