Questions tagged as 'reactjs'

2
answers

Extracting components in React

I am taking my first steps in React js and I have a couple of questions that I would like to clarify before continuing to develop. As I understand the only difference between function User(props) { return (<li>props.userName</l...
asked by 01.01.2017 / 18:44
2
answers

How can I send the value of the selected option to a function?

Good afternoon, now what I'm trying to do is the following: I have a <select> that has multiple categories with an id each, what I want to do is that in the case that this select is changed, I mean in a onChange , it was se...
asked by 20.01.2017 / 19:21
1
answer

Undefined in React method

When I press the "." to add the decimal, the display goes from "0" to "undefined.". That is, add it but the 0 becomes undefined. I do not understand why. state = { displayValue:"0", operator: null, pendingOperation: false, ne...
asked by 31.12.2018 / 23:29
1
answer

.Map on React does not work for me

I'm doing an exercise and React is telling me that I have the error in the .map. This is the area where the error occurs, specifically in FourColGrid. Thanks in advance. class Home extends Component{ state ={ movie:[], Hero...
asked by 25.10.2018 / 20:42
2
answers

how to use the componentDidMount in react JS

What I am trying to do is that this part const topics = [ { name: 'React Router', id: 'react-router', description: 'Declarative, component based routing for React', resources: [ { name: 'URL Paramet...
asked by 31.08.2018 / 17:02
1
answer

problems with accessing properties of an object in a request graphQl

Hi, I'm working on a reactive project with apollographQL and I'm having problems accessing the properties of the object that comes to me from the graphQl server with the mongodb database. Declare a test object in the same component and if I can...
asked by 13.08.2018 / 20:04
1
answer

How to create the production file in react with webpack

I have a simple crud that I did in react, the issue is that I did not use the create-react-app tool, but that I did it from scratch with webpack and babel, etc. My problem is how to create the production folder since with webpack it only does...
asked by 13.09.2018 / 22:13
1
answer

event on click on react

my question is how to make an event a click pull out an item from a json in particular, that every time a click on a name appears the same name If I click on value: 1 send me the same name in a log and I could not get it   My code...
asked by 29.07.2018 / 20:17
2
answers

How to fix error when executing webpack command from Node js?

I try to run the webpack command to compile an application in react js, previously I worked in ubuntu and it worked perfectly and I changed to windows and when using node js in windows, it generates the following message that does not allow me t...
asked by 27.04.2018 / 19:56
1
answer

Install create-react-app in a sub-domain

I'm doing a project on React using the create react app command. I have my server with NodeJS and I want to install the project in the main domain like www.dominio.com (that's what I do). But I also want to install a test version on test.domon...
asked by 29.04.2018 / 13:45