Questions tagged as 'react-router'

1
answer

Redirection to screen "Home" after validating login - React Native + Firebase

I need to implement in the code below the command for once the user is validated to be redirected to the "Home" screen. The changes I made did not solve my problem. I can create the user, save in Firebase but when I log in I can not direct to th...
asked by 30.11.2018 / 13:38
0
answers

Problems with React

I'm logging in and saving the data in a Session Storage, however every time I'm using a button (such as changing my password) I change the user's password but I have to log in again. Session Storage data is not lost but I do not know why I have...
asked by 26.11.2018 / 11:57
0
answers

Get data by POST in ReactJS

When I need to capture data in ReactJS through querystring, I use the command this.props.match.params.[NOME_DA_QUERY] .    Does anyone know how I can capture when this data comes from POST?     
asked by 07.11.2018 / 23:47
1
answer

Pass match.params into another component

I have the following problem: I have a step component and inside this component I have another component called form that renders one of the step steps. Well, in the step I can get the id passed with the code this.props.match.params.id...
asked by 18.10.2018 / 22:40
0
answers

React with React Router / Dynamic Configuration

I have two doubts about routes, in the scope of my project, I would have to mount this according to the json that arrives, as it may come with a different component tree. I would have something like this: workflow:{ name : intro, comp...
asked by 15.10.2018 / 22:03
1
answer

How to pass values to another component in the routes?

I have a login page, which does authentication by token and shortly after, with the user and password entered are returned the user data. Right after this I redirect the user to a component called Dashboard. But I wanted to pass his data to that...
asked by 08.10.2018 / 17:26
1
answer

How to get the json data with react, fetch and rest api?

Hello, I have a mortal doubt .. I am doing some studies with React, and for this I am pulling a json from the rest api wordpress. When I put something like fetch (" link ) when I step querys like fetch (" link ") it does not pull the data....
asked by 13.09.2018 / 16:24
1
answer

DYNAMIC ROUTES WITH PREACT + REACT ROUTER

If anyone can help, thank you, I'm trying to make my routes dynamic, but I can not understand what happens! see below the code image! Seealsotheimageoftheresultofthiscode! You can notice that the return of the component name is done normal...
asked by 03.09.2017 / 21:38
1
answer

Static routes do not react to two pages of different content

The situation is as follows, when creating an app with the react + webpack I have an html file, it is an index.html that loads a bundle.js (default webpack) to be displayed in the browser, but my app needs has the following structure, it has a s...
asked by 05.07.2017 / 04:17
0
answers

React-router-dom does not work in production build

Hello I'm using the Sun react-router in my application and everything works normally when squeeze with npm start. But when I run npm run build and open the application on a server, the routes do not work. Clicking on a link gives "page not fo...
asked by 04.01.2019 / 03:26