React.useEffect(() => { if (window.twttr && window.twttr.widgets) { window.twttr.widgets.load(twitterRef.current); } }, []);