Questions tagged as 'react'

0
answers

setState is not working properly

Hello, I'm doing an application in reactnative and I'm trying to set a state but it does not work, can you help me? follows the source (obs the handleClickFooter function that does not arrow the state) import React, { Component } from 'react';...
asked by 16.08.2018 / 03:38
0
answers

React Native Error

Someone could help me I received the following feedback Não esqueça de cancelar as notificações e agendar as notificações do dia seguinte quando o usuário terminar um quiz :thumbsup:. Você pode usar, por exemplo, o isQuestionAvaliable para tes...
asked by 12.08.2018 / 23:57
0
answers

POST in ReactJS with object included, how to do?

I need to make an enrollment for Course Instructors, in which each instructor will have a course. How do I? I'm doing it that way and it's not going: PS.: variable name and email receive a variable in String , already the course va...
asked by 13.08.2018 / 07:13
0
answers

How to give POST in a fetch in ReactJS?

I have an API in nodeJS and a SPA in ReactJ for registration of courses (only with the title of the same course, in a mongo bank), I have already done a function, with fetch, to search the registered courses and is working, but I do not know how...
asked by 12.08.2018 / 16:28
1
answer

My checkboxes are not ticking / unchecking

I'm implementing some checkbox with React, I can set it to initially be checked or not, but I can not change that state. How to solve? My PrincipaL Class class NewsletterConfig extends Component { constructor(props) { super(props)...
asked by 16.08.2018 / 17:51
1
answer

Hello World at React.JS does not work!

I'm trying to figure out a "Hello World!" no React.JS Look at my code, it just does not work: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script src="library/react.production.min.js"></scri...
asked by 06.08.2018 / 11:59
0
answers

Access an attribute of a React component

I'm using the GoJS library in React through integration React GoJS , so I can create a diagram in a very simple way, as stated in the example: <GojsDiagram diagramId="myDiagramDiv" model={this.props.model} createDiagram={this.creat...
asked by 01.08.2018 / 19:51
0
answers

Problem with Highstocks Tooltip.Shared

Good afternoon! I'm using highcharts in a react.js application. My chart option object looks like this: { title: { text: 'Deslocamento dos Alvos' }, chart: { renderTo: 'chart', zo...
asked by 26.07.2018 / 21:07
1
answer

How to remove an item dynamically from an object?

I'm using a reducer state, which contains an object in this format: x = {10: {nome: 'lucas'}, 20:{nome: 'beraldo'}} <br/> And, I get an id via action. I would like to do something like array.filter , or delete o...
asked by 27.07.2018 / 00:46
0
answers

How to generate bundle.js file with Webpack

I'm learning react, and in the video tutorials I'm watching, it tells you to install the global webpack: npm i -g webpack The installation was successful. Only in the video is created a directory dist with file bundle.js on...
asked by 28.07.2018 / 22:58