Questions tagged as 'react'

0
answers

Open a modal of another class POO React

I'm learning JavaScript and POO so I can be doing some bullshit, I'm trying to make a navbar and that navbar open different functions of different classes in other files. This part where you have the return arrow, the text 'products' and the...
asked by 05.01.2019 / 20:06
0
answers

I'm having problems sending the form in ReactJS, I get the following error "Can not Post", does anyone know why?

import React, {Component} from 'react'; import './Calcular.css'; class Calcular extends Component{ state = { number1: '', number2: '', type: '', result: '' } Calc = () => { switch(this.sta...
asked by 27.12.2018 / 22:33
0
answers

React Router - Main Routes x Application Routes

I'm studying React, I'm currently in version 16.6.3. I really enjoyed using it, I'm reading a lot of its documentation and implementing it as well. I have a lot to learn. I learned a little about the Routes, I was able to navigate between the...
asked by 30.12.2018 / 23:14
0
answers

Pass value from child to parent in react

I'm having a problem and have tried several ways to solve it ... I need to get the value of the child element and pass it to the parent. Within this form, I have these plus and minus buttons (if there is no shorter than this, it puts an X)....
asked by 17.12.2018 / 19:04
0
answers

Problems compiling with Babel JavaScript

Today I realized the acquisition of a theme for React, and when I went to execute the npm install commands to download the modules of the node and soon after I executed the command npm serve it returned an error to me as shown in t...
asked by 17.12.2018 / 21:53
0
answers

How do you expect a saga to finish running the whole cycle to perform a next function?

Good afternoon, I have a question regarding the use of sagas. I have a button that when clicked, triggers a function that calls an action: onClickChainIdentifier = (event) => { //action disparada this.props.getChains();...
asked by 17.12.2018 / 21:10
0
answers

Different position of the array being called. Memory Game on React

I'm making a memory game in React using typescript to learn. In the getCards function, I look for 6 backend cards, put them in an array, duplicate this array, and popup and refresh the screen. private getCards = async () => { con...
asked by 25.12.2018 / 18:53
0
answers

How to use data from 2 different apis in the React table

I'm like a problem in my code, I want to put the name next to the title and comment of the person ... This data comes from 2 different apis of the jsonplaceholder. So in tbody I have 2 this.state.users.map and this.state.posts.map wanted to put...
asked by 20.12.2018 / 19:40
1
answer

Request with Axios and React blocked by CORS policy

I'm trying to make the request for an API, using Axios: axios.post('http://api.teste.com.br/v1/getToken', { withCredentials: true, auth: { username: 'usuario', password: 'password' }, headers: {...
asked by 12.12.2018 / 13:57
0
answers

React and Web API - How to submit form with files

I'm using React to develop the front and C # Web APIs for back. I'm trying to submit a form that has an input file, in the API I created a ViewModel to receive this data. Before submitting, I put form data in a FormData , which is being...
asked by 04.12.2018 / 14:29