import React, { useEffect } from 'react'; function Extra(props) { const url = '//assets.revcontent.com/master/delivery.js'; useEffect(() => { const script = document.createElement('script'); script.src = url; script.async = true; document.body.appendChild(script); return () => { document.body.removeChild(script); // if user navigates too rapidly,