You should not use 'this' in functional components. If you need the intervalID you can save it in a new state.

MyComponent = () => {
   const [intervalID, setIntervalID] = useState()
    
   const updateData = () => {...}

   startInterval = () => {
       const interval = setInterval(updateData, 15000)
       setIntervalID(interval)
   }
    
   stopInterval = () => {
       clearInterval(intervalID)
   }
}