Questions tagged [react-routing]
70 questions
0
votes
4 answers
Routing is not working in Reactjs + ES6
When I am clicking on the link "cake" I am getting the error the path is not matched or server is not able to find.
Here is my code for 3 files - Router, Navigation and detail components
Routers.js- component handling the routing
import React from…

Neha Sharma
- 732
- 1
- 4
- 13
0
votes
1 answer
What caused this warning in react-router?
browser.js: Warning: [react-router] the History mixin is
deprecated, please access context.router with your own
contextTypes.
My routes file
const routes = (

ZPPP
- 1,567
- 2
- 18
- 27
0
votes
0 answers
Why my React Router is not working?
I am working on an example and making react router.Below is my code. But when I am running my code it is giving me error "Unexpected syntax" on the opening line of < Router > .Below is the code:
var React = require('react');
var ReactRouter =…

Neha Sharma
- 732
- 1
- 4
- 13
0
votes
0 answers
Any latest gem of react-router for rails4
I am using rails4 with react-rails gem and there is a gem for react-router is https://github.com/mariopeixoto/react-router-rails but this is using too old version of react-router (0.13) and currently react-router-2 has been launched.
So is there any…

Vijay Chouhan
- 4,613
- 5
- 29
- 35
0
votes
1 answer
react router not getting route after click
My routes.js is something like:
const routes = (
)
export…

varad
- 7,309
- 20
- 60
- 112
0
votes
1 answer
React Nested routing issue
my router looks like the following,
[
{
path: '/',
component: App,
childRoutes: [
{
path: 'dashboard',
getComponent: function(location, cb) {
require.ensure([], function(require) {
…

Gilson PJ
- 3,443
- 3
- 32
- 53
0
votes
1 answer
Switching between routes using React-router
I'm currently building my first webapp using react js and react router as I would like to develop a single page app. I'm just doing the first example with react router and trying to switch between two routes, however I'm not able to get it working.…

fgonzalez
- 3,787
- 7
- 45
- 79
-1
votes
2 answers
How can I hide Navbar from signin, signup pages in react?
How can i modify my app.js file to hide Navbar for signin and signup pages, but render for other pages?
I want to render navbar once but screencomponents inside it should change. In navbar , I have to pass screenComponent prop in order to show…

Alliyan Waheed
- 9
- 1
-1
votes
1 answer
Routing with Spotify API
I am developing a spotify clone with the ability to play a preview of the songs and display user's different top tracks and artists. I have already made standalone pages for the website after authorizing with the help spotify-web-api-node package,…

Amogh
- 1
- 1
-2
votes
1 answer
the component for route 'login' must be a react component
I hope all of you are doing well and good. I saw many answers related to this and implemented many answers on my code but seems like nothing worked for me. I keep getting this annoying error. What could be the reason? I am using…

Syed Bilal
- 63
- 1
- 9