JSFiddle - React, Tailwind, and code Playground

JavaScript

$('.does-not-exist').scrollTop(0).scrollLeft(0);