Questions tagged as 'react'

0
answers

How to pass variable in require

I'm trying to pass a populated variable through the database, containing my route to require, but it's giving the following error: "Cannot find module 'views/Cadastros/Usuario'" And these are the forms that I tried to import and unfortunate...
asked by 29.10.2018 / 14:21
0
answers

http-server (Docker template) doing "proxy" for React application

In a simple application made with React created with create-react-app , using Docker template of some link ( Apache , for example), it is common to use a rule in Rewrite with /* passing to /static/ forcing to go to index.h...
asked by 24.10.2018 / 15:51
0
answers

'state' does not match. - Auth0 - React JS

Alright? Next I'm dealing with this error when logging in using Auth0 with React JS: I'veresearchedseveralsites,reorganizedmycodecountlesstimes,debuggingfor3daysandnothing.IamperformingaloginwithAuth0.Checkoutmycomponentsandmethodsbelow:Ind...
asked by 30.10.2018 / 20:01
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

Problems using system developed in React in Apache

I created an application with React, and when I finished developing it npm run build , I threw the app on the Xampp server to test, but when I access the system through the Xampp server it appears: MyAppafterbuild     
asked by 17.10.2018 / 03:07
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
0
answers

Problem making a GET on my site when it is entered via www (react + django)

I have a django application that uses React on some of its pages (not two separate servers). In my pages in React, I make HTTP requests to django by api using Django Rest Framework. This application is already in the air, and in it I noticed...
asked by 10.10.2018 / 21:48
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
0
answers

How to show 3 different results for searches in the input field? in React?

How can I display one of the 3 search options in the Search bar of my nput field? Based on different inputs I need to show: A-If the {query} is '' (empty): I would like to display the text 'Search your Owner' B-If the {query} is not emp...
asked by 07.10.2018 / 22:05
1
answer

CameraRoll React-native

I need to create a script that returns and lists the images found in the user's mobile gallery. For this, I'm using the getPhotos method of the CameraRoll component of React-native    link In both IOS and Android, the array of images ar...
asked by 11.10.2018 / 19:44