Tag: react-router

59 votes
24 answers
769 views
How to push to History in React Router v4?

In the current version of React Router (v3) I can accept a server response and use browserHistory.push to go t

avatar
Rufus
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
2.2K views
React - How to get parameter value from query string?

How can I define a route in my routes.jsx file to capture the __firebase_request_key parameter value from a UR

avatar
Tuan
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
1.7K views
Uncaught Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function but got: object

I am getting this error: Uncaught Error: Invariant Violation: Element type is invalid: expected a strin

avatar
Xavier
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
2.1K views
React-router urls don't work when refreshing or writing manually

I'm using React-router and it works fine while I'm clicking on link buttons, but when I refresh my w

avatar
Robyn
0 1 0 9
asked 07 September, 2021
54 votes
30 answers
2.9K views
Programmatically navigate using React router

With react-router I can use the Link element to create links which are natively handled by react router. I s

avatar
Hilario
0 1 0 9
asked 07 September, 2021