30 chars2 lines
209 chars7 lines
index.tsx263 chars9 lines
This code creates a div with the id "scrollingDiv" and sets its height to 80% of the viewport height. It uses CSS flexbox to make sure the contents of the div don't wrap and allows horizontal scrolling with the overflow-x property set to "auto".
The JavaScript code then uses DOM manipulation to add content to the scrolling div. A loop is used to create 20 child divs with incrementing text content, which are then appended to the scrolling div.
gistlibby LogSnag