Implementing Smooth Scrolling in React