Questions tagged as 'react'

0
answers

How to structure the database in Firebase

I am somewhat of a layman in NoSql, and I have a question about performace in my Firebase database, it is currently organized as follows As you can see the reference for the student and the product that are in the Sale are their respective...
asked by 20.11.2018 / 05:51
1
answer

Update React component with window.localStorage [closed]

I'm new to React and I have the following problem: I have three components extends Component that I need to communicate. They are a NavBar and two static contents. The contents of NavBar (text and icons) are changed according to the con...
asked by 26.10.2018 / 01:10
0
answers

Error saving LOGs and Images - detox [12591] ERROR: [exec.js / EXEC_FAIL, # 6]

I'm studying lib detox for automated testing. I can run the tests normally and they pass, but when I add the command --record-logs all it returns me this error. From what I understand is some file that is not being created by my simulator...
asked by 12.09.2018 / 17:45
0
answers

JWT and Passport returns 401 React

Good afternoon. I am learning JWT and Passport and am experiencing problems with the same, the problem is this, I can login and save in LocalStorage, and redirect to another page however, even entering the correct data I get a 401 (Unautho...
asked by 29.08.2018 / 20:43
0
answers

Rotate image CSS3 or JavaScript [duplicate]

How do I know I have to rotate an image to display it on a page? Can I check this in css or does it have to be in the javascript? Is that in dashboard of a website that I developed the image appears upside down at the time of upload, if...
asked by 24.08.2018 / 19:20
1
answer

TypeError: items.map is not a function

I made a request in a URL via Fetch, however it returns an error when I request json mapping, does anyone know how to solve it? I've hidden the URL because it's private. import React, { Component } from 'react'; class App extends Compon...
asked by 31.08.2018 / 13:23
0
answers

Pass data by context (HOC) React

Well, I'm doing a forms system on react. I'm using the context to pass some information to the child components. The project structure is as follows: / context - Where I have saved the context import React from "react"; const FormContext...
asked by 05.08.2018 / 00:06
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

React Native - fetch (url) always returning a Promise

I'm starting in React Native, I had no problems until I started doing HTTP requests. I'm using this function: async getJSON(url, parameters){ try{ //check if URL isn't empty if(url.length == 0) return false;...
asked by 18.06.2018 / 03:50
1
answer

Pass parameters (including an image) to PHP with Axios using formData

I created a React component to be my custom input button: getFormData(){ var formData = new FormData(); var imagefile = document.querySelector('#btn_file_logo'); formData.append("image", imagefile.files[0]); return formData; }...
asked by 06.06.2018 / 16:01