Questions tagged as 'reactjs'

1
answer

How to know which route I am with react-navigation in react-native? [closed]

I am using a Rea-navigation StackNavigation in react-native, but I need my header component to be very personalized according to the route, I will place the custom heade component, but I can not get the name of the route I am on or something tha...
asked by 04.05.2018 / 23:49
1
answer

How do I set an array as a parameter in JavaScript? [closed]

I've been trying a new function to my program, this program has the purpose of making it easier to search for elements within an array, all these elements are unique, one way to find them and deliver them is by a rank, giving two parameters in t...
asked by 25.04.2018 / 21:25
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

How to fill an object with array properties?

Hello, I have a component in React that has a state type object: items: {} and my goal is to fill it with properties type fix. Example if input into a input a value is created: items: {Cat []} and if then input another value is created items: {C...
asked by 13.03.2018 / 19:04
1
answer

Uncaught TypeError: React.createClass is not a function

I have the code with emac6 so I do not understand why the next error in the browser when launching the app with the code already compiled bundle.js . Uncaught TypeError: React.createClass is not a function webpack.config.js /* eslint...
asked by 08.11.2017 / 19:45
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

I do not load anything React JS - Basic error

Hello friends I have the following code I am currently creating a React to List, based on this tutorial: The tutorial The code is fine, it does not give me any error nor the navigator code inspector .. I'm running it from localHost with...
asked by 01.06.2017 / 05:15
1
answer

How to upload images to nodejs

I want to upload several images to my server nodejs that have additional information such as title and category , I tried sending the images in DataUrl but due to The limitations of POST does not allow me to upload more than 2 images at a t...
asked by 14.05.2017 / 22:55
1
answer

How can I filter these items?

Good afternoon, I have the following problem and it is that I am trying to filter some items and I am not achieving it. The function of this would be the following: I have a header with checkboxes that are the categories, but, what I need...
asked by 21.04.2017 / 21:33
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