1import React, {useRef} from 'react'
2const displayNode = useRef(null)
3//action
4displayNode.current.textContent = `${count} Appointments Successfully Uploaded`
5//referenced object
6<div ref={displayNode} className="text-center mt-3 msg" style={{ color: "green", fontWeight: "800" }}></div>