score:0

you should try wrapping the route components with a switch

<browserrouter>
  <route render={
    ({ location }) => (
      <reactcsstransitiongroup
        transitionentertimeout={300}
        transitionleavetimeout={300}
        transitionname="fade">
          <switch key={location.key}>
            <route
              component={loginview}
              exact
              key="l"
              location={location}
              path="/" />

            <route
              component={underconstructionview}
              exact
              key="uc"
              location={location}
              path="/under-construction" />
          </switch>
      </reactcsstransitiongroup>
    )
  }
  />
</browserrouter>

Related Query

More Query from same tag