score:4

that's probably happening because your "router component" is trying to re-render everytime something changes (probably the history).

it's easier to use a const for your routes

const browserhistory = userouterhistory(createhistory)({
    basename: '/sign',
});

const history = synchistorywithstore(browserhistory, store, {
    selectlocationstate: (state) => state.routing,
});

const routes = (<route path="/" component={sign}>
                <indexredirect to="/login" />
                <route path="login" component={login} />
            </route>)

reactdom.render(
  <router history={history}>
    {routes}
  </router>,
  yourelement
);

Related Query

More Query from same tag