сайты действительно очень тормозные на фреймворках - но всем наплевать
const [show, setShow] = React.useState(false);
  
  const showNotify = () => {
    setShow(true)
    setTimeout(() => setShow(false), 3000)
  }
  return (
  
      <div>
        <button  onClick={showNotify}>trigger</button>
          <div
            style={{
              position: 'absolute',
              background: "green",
              display: 'flex',
              alignItems: 'center',
              justifyContent: 'center',
              borderRadius: '25px',
              padding: '10px 20px',
              transition: '0.3s ease',
              opacity: show ? 1 : 0,
              bottom: '50px',
              left: '50px'
            }}>
            notify
          </div>
      </div>
  );