我正试图建立一个登陆页面,然后将导致我的主页与反应。我创建了一个名为Splash的登陆页面组件。我正在尝试使用IndexRoute,以便我的应用程序将Splash显示为我的初始页面。> }我的问题是,我的应用程序一开始不会显示Splash,我的主页和登陆页面同时显示。编辑import React, { Component } from 'react';
import { Link } from
Same-page anchors // ... find the target based on the divand animate the scrollTop property again });</script>
它所做的是首先检查是否登陆一个带有#锚点的页面,或者用户是否正在点击同一页面的#锚点,并简单地使用相应的id动画到目标div。问题