Is there a way to monitor changes such as class modifications or text updates within a div using Vue 3?
from:
<p class="font-bold">My text</p>
to:
<p class="font-bold color-red">My updated text.</p>
I attempted to use the watch
method in Vue 3 but it does not track changes within a div.
watch(myDiv, (newValue, oldValue) => {
// This code is not effective for monitoring changes within myDiv.
})