Questions tagged as 'react'

0
answers

Execute a function and it takes more than x seconds of the error - React Native

Good afternoon! I made a function that searches the data of a JSON on the Web, but wanted to wrap it in a function that would take longer than for example 10 seconds to explode an error on the screen, currently the page is only blank, it only...
asked by 20.11.2018 / 19:13
1
answer

How to use Material Icons with next.js?

import Link from 'next/link'; import MaterialIcon from 'material-icons-react'; const Header = (props) => { return ( <nav> <ul> {navOptions.map(nav => ( <li> <Link href={nav.url...
asked by 21.11.2018 / 06: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
0
answers

Placing script tags on react native

How do I put javascript tags in react native? I have this tag to put into a project <script data-cfasync='false' type='text/javascript' src='link'></script> It's an ad tag. In the browser it works. But I do not know how to...
asked by 12.11.2018 / 17:58
0
answers

Child object appears as 'undefined', but an earlier level of the object shows the value

The this.props.usuario.user.guia field is as undefined , but when it is entered in the log the this.props.usuario.user object appears with value. This does not make sense to me. Log code: if (!this.props.usuario.logout)...
asked by 09.11.2018 / 01:42
0
answers

How to receive the store passed by the mobx-react Provider?

This is my index.js: import React from 'react'; import { Provider } from 'mobx-react'; import RootStore from './stores/RootStore'; ReactDOM.render( <Provider rootStore={ new RootStore() }><App/></Provider>, document.getEleme...
asked by 03.11.2018 / 02:51
0
answers

Getting digital certificate to sign XML in react

I have many questions, I am developing a system in react, this system consumes an api in ASP.NET Core, I generated the xml in the react and I need to send it to the sefaz, but I need to sign the same ... I have been giving one searched and it lo...
asked by 31.10.2018 / 19:29
0
answers

Regressive timer updates and does not accept new value to start counting

Countdown timer when clicking start returns the value that is set in the parameters. If you add minutes to the counter before starting when you click the start it will return to the value set and not to the new value entered. import React, { C...
asked by 28.10.2018 / 21:19
1
answer

What's wrong with running the react-native app?

Hello, I'm trying to run my native react app through the    sudo react-native run-android But I always get the following error message: FAILURE: Build failed with an exception. * What went wrong: Could not determine java version from '...
asked by 02.11.2018 / 20:42
1
answer

How can I get the JWT token after authenticating?

I have a Rest spring-boot API which, when a user authenticates the api returns the token jwt, I noticed in the browser that the token appears in the Response Header > Authentication and in the tests with the Postman it shows in the Body. H...
asked by 16.11.2018 / 15:58