Aksana-Tsishchanka / react-routing

react-routing
MIT License
1 stars 0 forks source link

browserHistory.push(); Is it still used? #1

Open EmmanuelSkapple opened 7 years ago

EmmanuelSkapple commented 7 years ago

Hi Aksana You answered me a couple of days ago in stackoverflow I wanted implement part of your code, for redirect to other section if the login is success but the browserHistory.push() is not working can you help me? please 😃

Aksana-Tsishchanka commented 7 years ago

Hi! It has to work. Did you add react-router? In my code I use "react-router": "3.0.2".

Aksana-Tsishchanka commented 7 years ago

What do you mean by not working? Do you have errors in console or when budle is compiled?

Aksana-Tsishchanka commented 7 years ago

Do u have link to your project?

EmmanuelSkapple commented 7 years ago

Hi I use "react-router": "4.1.1", I not have problems in console only not working

EmmanuelSkapple commented 7 years ago

this is the proyect https://github.com/adan-itsz/beBat

Aksana-Tsishchanka commented 7 years ago

React Router v4 significantly differs from v3, so in this case I suggest to use react-router v3 and use browserHistory or follow instruction for react-router v4, check https://reacttraining.com/react-router/web/example/auth-workflow

EmmanuelSkapple commented 7 years ago

Thanks Aksana I check for the v4, and I'll let you know if I could, 😃