We are currently upgrading from react-router v3 to v5, therefore also upgrading react-router-bootstrap from v0.23.3 to v0.25.0. We have noticed that LinkContainer (which is just wrapping Route) is turning all children into a-tags, even though e.g. a Button component is passed.
Is this on purpose? Is there any way around this?
Right now it is breaking our tests (we are assuming e.g. that a button component is used in some places).
We are currently upgrading from
react-routerv3 to v5, therefore also upgradingreact-router-bootstrapfromv0.23.3tov0.25.0. We have noticed thatLinkContainer(which is just wrappingRoute) is turning all children intoa-tags, even though e.g. aButtoncomponent is passed.Is this on purpose? Is there any way around this?
Right now it is breaking our tests (we are assuming e.g. that a
buttoncomponent is used in some places).