Questions tagged as 'react'

1
answer

How to add a component to each click on the react

I have a form where it has a standard responsible (NewResponsavel), but if there is any other has to be added a new responsible with each click of the 'add another' button, today I can only add once, if someone would know how to add the same com...
asked by 12.03.2018 / 21:23
1
answer

How to concatenate values within a class in React.JS

I have the following code: { this.state.listSkills.map(function(habilidade){ return ( <ul className="habilidades"> <li className="habilidade-"{habilidade.value}&g...
asked by 11.02.2018 / 12:34
1
answer

How do I make the code look at an if only after having changed the prop of an object?

I have a form that when I click on send it leaves red the field that is empty. It makes different validations in each of the fields. Only when all of the fields are greyed out does it send the data via post and disables the error message. Th...
asked by 29.01.2018 / 18:54
1
answer

Is there any way to get what the user is listening to?

I would like to know if you have some way or even a lib so that I can get the information of the audio player of the phone, such as song duration, name, album etc. with the react native.     
asked by 02.01.2018 / 19:27
1
answer

Installation of dependencies in npm start but not finish

I am taking a course and following a book on NodeJs . In the book I'm asked to install the Express and Babel modules, already in the course they ask to install dependencies of an application that they make available. My problem is this:  ...
asked by 01.12.2017 / 22:56
2
answers

Phone link react native

Would anyone know how to link to open the smartphone phone call when the user clicks on the phone number in the apk? I'm waiting ...     
asked by 22.01.2018 / 01:55
1
answer

Catch parts of a JSON vector

I am in doubt on the GET function of my JS code (React JS), I have the GET function using the Fetch api, it returns the values a certain link.json containing an array. Using this example link: link - I want to get the contents of the first 'Id...
asked by 05.11.2017 / 18:22
1
answer

Condition IF-Else ReactJS Json

In the code developed in ReacJS below, it returns a field containing a "displayPortraitLeft" key with values ranging from true to false, and depending on the value (true / false) obtained, would like it to behave differently, another "style in c...
asked by 05.11.2017 / 21:18
1
answer

Call class method within a promise returns: Uncaught (in promise) TypeError: _this3.updateShelvesState is not a function

Good afternoon! I created a method called updateShelvesState which is called before the component is rendered, and the onChange of another component called Book . This method takes an array and creates a new array organ...
asked by 08.11.2017 / 19:39
1
answer

Syntax Error. Unexpected token '=' no React

When I try to run dev-server it returns me an error in the console that I can not identify what is generating it webpack.config.js iconst path = require('path'); module.exports = { entry: './src/app.js', output: { path: path.join(__dir...
asked by 28.10.2017 / 18:38