Questions tagged as 'react'

2
answers

How to delete an element by Key in React?

This is the generated code, because the list is created by the routes of the pages, I would like to know a way to delete a specific Navlink, either by the key or by another way definitely, that Navlink should be eliminated when the page is loade...
asked by 27.02.2018 / 20:21
2
answers

React onChange is not firing

I have the following code: handleChange(event, module) { this.state[module][event.target.name] = event.target.value this.forceUpdate(); } render() { const handleChange = (event, module) => { this.handleChange(event, mod...
asked by 01.03.2018 / 00:00
0
answers

React project does not open on Apple devices

I have a project made with react using the Webpack for frontend and Spring Maven for back. I'm using JSX files and Ant Design framework. The problem is in the fact that in Windows and Android, the site opens without any problem, however when goi...
asked by 09.02.2018 / 18:28
0
answers

Slow action firing and delayed new state return ...?

I'm having a little delay in triggering the actions, when triggering an action takes about 2 seconds for it to be activated, and when it is instantly activated, the return of the new state sometimes takes 2 seconds sometimes up to 8 seconds , I'...
asked by 15.02.2018 / 16:56
0
answers

Visual Studio Code and React

I started studying ReactJS recently and initially I chose VS Code as a tool for development, but there is something bizarre happening that does not help anything in development. Every time I need to save something in the code for the changes to...
asked by 01.02.2018 / 13:54
1
answer

React - How to modify a state of the parent component from the child?

Let's say I have a parent component: import React from 'react'; import style from './style.less'; export default class Wrapper extends Component { this.state = { active: false } render() { return ( &...
asked by 26.01.2018 / 23:50
1
answer

Tabbar React Native

I'm having trouble positioning a component of tabbar I'm doing. Home.js import React, {Component} from 'react' import {View, Text, ScrollView} from 'react-native' import Header from './../components/Header' import Card from...
asked by 26.01.2018 / 23:30
0
answers

How to request PHP and BD files on the same server created by the React-app

I'm learning how to use Framework React. In the submitting part of form data, and retrieving this data, I am using ajax with the jQuery function. componentDidMount() { $.ajax({ url:"http://localhost:80/contatos/dados-json.php",...
asked by 10.01.2018 / 21:32
1
answer

Error in MuiThemeProvider

Good evening, I'm facing a problem in a react project. When executing the same, I get the following error: "Failed prop type: The prop 'theme' is marked as required in MuiThemeProvider , but its value is undefined ." This error is be...
asked by 07.01.2018 / 02:34
1
answer

Drawer use in the react / material-ui

Good evening. I am new to react and am trying to apply a drawer to my project, however when running it on localhost the drawer is not working and I am getting the following errors: 'handleToggle' is assigned but never used 'handleClose' is...
asked by 06.01.2018 / 02:18