Questions tagged as 'react-router'

1
answer

Error in class constructor in React

I get the following error when I try to use the component this way. client?cd17:119 ./src/App/Components/AddNote.js Module build failed: SyntaxError: super() outside of class constructor (9:4) 7 | const FormText = React.createClass(...
asked by 30.03.2017 / 15:17
1
answer

React Router: Use more files with routes

I have a question regarding the use of React Router, I could have several files eg main.js, stock.js and bank.js and each file have their Router? getting something like: main.js import React from 'react'; import { Switch, Route } from 'r...
asked by 12.06.2018 / 16:21
1
answer

Problem to change class in React that has Bootstrap responsive menu

I'm doing a site with Bootstrap and ReatJs and this site has a responsive menu. This menu looks like this (example): Dashboard Registration User Administrator Each time I click on one of the menu items is placed by NavLink an act...
asked by 27.07.2018 / 23:07
1
answer

Create routes using the Route of React

Next I'm using the react-router-dom while I'm serving the project folder as if it were root works, the routes go to the specific components my problem is when I put in a server: The part of the front where the react is I put inside the folder...
asked by 15.10.2017 / 16:30
1
answer

React-router not rendering pages not found correctly

I'm developing an application using React + React-router + Express to render on the server and inject into an EJS view. It is working correctly, but I noticed that by not finding a route like /naoexiste the request falls correctly on t...
asked by 02.12.2016 / 18:05
1
answer

React Route without link

I'm starting my studies with React and I'm using the React Router to navigate between pages by clicking links in the menu, but I have a question, how do I access a page without a link? How do I set up a route in this case?! The project I created...
asked by 21.10.2018 / 19:50
1
answer

How to navigate with the react-router-dom when an action occurs

Hello, I'm starting to work with React and I'm doing an integration with Firebase. My problem is this, I can already trigger all the actions I need, but when I fire my last action from USUARIO_ENTRAR_SUCESSO I need to react-router-dom...
asked by 16.06.2018 / 17:58
1
answer

Warning: validateDOMNesting (...): a can not appear as a descendant of a

Hello, I'm trying to use the Link component of react-router-dom to generate links in a data table, however, I'm facing the following problem: Warning: validateDOMNesting(...): <a> cannot appear as a descendant of <a&g...
asked by 26.07.2017 / 18:44
0
answers

Url query Reach Route - React

I have the following problem: I have an API in node.js that returns me id and name of products and supermarkets When I do a get in / supermarkets passing via url params /:idSupermercado I can get this parameter in the component by t...
asked by 05.12.2018 / 12:48
1
answer

Login React Native + Firebase with error using "SwitchNavigator"

error (undefined is not a function (near '... (0, _reactNavigation.SwitchNavigator) ...')) when compiling application. > I need to log in to the "Main" screen. import React from 'react' import { StyleSheet, Platform, Image, Text, View }...
asked by 30.11.2018 / 11:44