Questions tagged as 'react'

1
answer

state.post is undefined in Blog with React + Redux

I have a problem rendering the list of all the post with React, I want to render a function with a mapping of posts but it tells me that the one that is undefined, that is due. I used mapStateToProps to call the array todos...
asked by 25.06.2018 / 01:03
1
answer

error when creating a reactive project using npx

I am learning to use react js, but I have problems trying to run the npm in the terminal on my mac, I put the code "npm install -g create-react-app" and I get a permission error, but the I really do not understand how to solve that, it wil...
asked by 08.06.2018 / 18:22
1
answer

problem with screen positioning when the keyboard is activated with React native

It happens that when the keyboard is activated, it seems to be placed over my view and this hides the input.     
asked by 10.05.2018 / 08:18
1
answer

How can I navigate the properties of an object to save data in an array-like property?

Hello, I have a structure that is an object that has several arrays as properties. Example: items: {Dogs: [], Cats: [], ....} I want to go through these properties comparing each one with a variable with the name and the conincida to save...
asked by 19.03.2018 / 22:50
1
answer

Routing problem with Hosting Firebase

Good afternoon, today I am with a router inconvenience, it turns out that I have a project in react, and upload it to Firebase Hosting, the thing is, all the routes work, as long as the router is reactive who does the redirect, imagine I enter t...
asked by 29.01.2018 / 20:08
1
answer

Pass THIS into the [duplicate] function

Hi, I have a function in React and I would like to move this inside of it to be able to use the states, someone knows how? Thank you very much for your help constructor(props) { super(props); this.state = { message:...
asked by 10.01.2018 / 16:09
1
answer

How can I pass two arguments with props in React?

Hi, I'm new in this React but I have a question with the parameters, I just want to print the name and age as soon as the input changes state, when entering the age in the second input modify the name And not age, why does t...
asked by 22.12.2017 / 22:12
1
answer

PropTypes in React, it's not working

First, I had already used the prop-types package before to validate arguments in React components, but in a project in I do not know why it is not working and I have it set as usual. Use WebPack for the bundle and the test server (webp...
asked by 22.06.2017 / 14:16
1
answer

Can you call an object from the onclick event?

I have a li object and I want to create an object from its onclick event. What I want is to be able to create an object from the event click of list item . Can it be done? If you can not, is there an alternative?...
asked by 25.03.2017 / 21:42
1
answer

Problems installing webpack to install reactjs

I want to install reactjs and in the step of installing webpack problems start. I execute npm install webpack -g and then I get these warnings npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/webpack/n...
asked by 10.02.2017 / 13:17