reactjs - is there anyway to navigate in a React-Router V4 app from outside a react environment? -


i making app 2 libraries along react. using leaflet , marzipano.

i using redux datasync.

now, want change route on click of leaflet marker. using histroy.pushstate results in url change, don't route params in react components.

so bypass global this.props.history history , use push method change state.

is there better way this... using feels wrong... monkey patch.

if use react-router-redux, there useful actions can use change location long have access store.


Comments

Popular posts from this blog

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -