我知道react-router的官方文件说import createBrowserHistory from 'history/lib/createBrowserHistory'import history from './history'
render(<Router history={history}/
这里的StackOverflow是新手,所以如果有什么我需要做的,请告诉我。在所提供的文档()的最底部,我发现了一个辅助函数,该函数应该从URL中删除那些锚点链接,但我不确定应该将代码粘贴到哪里才能使其工作。var scroll = new SmoothScroll();
var smoothScro