T
TanStack3y ago
afraid-scarlet

Smooth Scrolling Example

Hi, I'm new to react-virtual and have just been checking out your examples. In particular, I'm interested in the "Smooth Scrolling" example. However, it doesn't seem to be working at the moment. Any idea what's wrong with it? https://tanstack.com/virtual/v3/docs/examples/react/smooth-scroll
React Virtual Smooth Scroll Example | TanStack Virtual Docs
An example showing how to implement Smooth Scroll in React Virtual
2 Replies
afraid-scarlet
afraid-scarletOP3y ago
Sorted. Seems there is a missing:
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root")
);
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root")
);
in main.tsx for that example. 👍
sensitive-blue
sensitive-blue3y ago
Thanks! Would you like to open a PR for that?

Did you find this page helpful?