Scroll Indicator in React
Build a reading progress scroll indicator — a thin colored bar at the top of the page that fills from 0% to 100% width as the user scrolls from top to bottom. Common in blogs and articles. Formula: scrollPercentage = (scrollTop / (scrollHeight - clientHeight)) * 100.