React version of https://github.com/damassi/smooth-scroll-example