T
TanStack4y ago
conscious-sapphire

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
conscious-sapphire
conscious-sapphireOP4y 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. 👍
absent-sapphire
absent-sapphire4y ago
Thanks! Would you like to open a PR for that?

Did you find this page helpful?