Questions tagged as 'react'

1
answer

Destroy React component (Unmounting Component)

I would like to know how I can destroy a component with React when I click a button. I found a way out, but in my design it is very "gambiarrosa". I have a state called show and when I click close I modify the value of this.state.show...
asked by 16.11.2016 / 19:59
1
answer

Do I need to have a server to make a login system with the react?

It may be a silly question but I'm pretty confused about React.js, I developed a Webapi in Asp.net core and it's already working ... I need to make a login system in React. Thinking about how I would develop, in the case I program in php, I woul...
asked by 05.10.2018 / 16:17
1
answer

Error trying to call more than one function in onPress

I have a Button with a onPress If I put this onPress like this: onPress={() => request.manifestacaoAnonima( this.state.email, this.state.selected, this.state.manifesto, this.state.tipomanifestacao,...
asked by 19.12.2017 / 17:43
1
answer

In ReactJS, can you ensure that a method of the class is only executed after setState is completed?

I'm doing a FreeCodeCamp project using ReactJS. It consists of making two Leaderboards : one of the campers with the highest score in the last 30 days and another of those who have accumulated more points, user can choose which leaderboard...
asked by 04.02.2018 / 19:11
1
answer

Make React components available as dependency

blz? I have some react components here and I need to make them all available in a dependency, style or semantic, how can I do this? I'm trying to export the components into an index that imports and exports everything but I'm having a problem...
asked by 11.07.2017 / 21:49
2
answers

Error trying to install Router Flux

I came across a very annoying error when trying to install Router Flux in the folder of my app6 some suggestion: Note: I've already installed two libraries:    npm install --save eslint-config-rallycoding npm install --save       react-na...
asked by 03.05.2017 / 21:50
1
answer

How to isolate the CSS of a component?

I'm using react.js (in the example the create react app) and I even created two components, but I could not isolate the .css of each component. The css of the Info.css table ends up being applied to the other components that have the same clas...
asked by 31.05.2017 / 02:16
2
answers

Webpack not updating bundle.js

I'm new to this React and Webpack stuff, and I'm studying hard, but I came up with a problem that I'm not finding a way to solve. const webpack = require('webpack') module.exports = { entry: './html/js/index.jsx', output: { pa...
asked by 29.05.2017 / 17:39
1
answer

How to solve this error with the Drawer component of Materialui

I'm trying to use the drawer of the ui material, however it is returning the following error when gulp will process it:    Unexpected token (15:17) handleToggle = () = > this.setState ({open:   ! this.state.open}) The error points to t...
asked by 12.07.2016 / 19:55
1
answer

React.js Failure Handling Events

I'm starting to learn React.js by seeing some videos, tutorials and documentation. However, I'm having a problem with my code in Google Chrome appearing like this: AndinFirefoxneitherIgetanyerrormessageinformationandsupposedlyshouldappear,at...
asked by 26.07.2016 / 20:39