Questions tagged as 'react'

2
answers

What does the data-react attribute mean?

I was looking at some sites on the internet, and I saw, in the source code of some pages, an attribute called data-reactid , inserted in elements div . What is this attribute, what is its function and what does it influence?     
asked by 17.04.2017 / 22:36
1
answer

Get Response from an API that returns error 500

Next, I have an API that returns error 500 every time it breaks the business rule and returns a status and message. We know it's not a good practice to return status 500 under these circumstances, but is there any way I can get the JSON that it...
asked by 22.05.2017 / 15:20
1
answer

Form with list in react

I'm on my first project with react, and I'm totally lost with a submit. Home My form must submit the client data, and within that same form I can have two addresses. Since both addresses have the same attributes, I decided to create an address c...
asked by 08.11.2018 / 12:23
1
answer

Error trying to access a property of an object in a React component

I have a problem accessing information from an array that has an object inside, using React. This is the function that brings my json and changes the state of the application, it creates a times.name, times.players and times.foto, in case thi...
asked by 19.11.2018 / 23:00
2
answers

Json API access problem with React

I'm trying to access the following Json variable in an API: page[0].infoBloco[0].tabela[0].dados[0].fonte.nome I'm getting the error: TypeError: this.state.page[0] is undefined[Learn More] index.jsx:49 The Json API returns: [ {...
asked by 19.06.2018 / 15:36
1
answer

Add scrollbar to a Box

I am in doubt about my code, in it I will add a chat field, and in this chat the box must have a maximum size, and if in this case when adding the messages exceeds this value, it should create a scroll bar, but this is not working. In the bro...
asked by 23.11.2017 / 09:59
0
answers

Adjustments in React.JS CSS

I am developing a simple system in react and I am having difficulties in the visual part, for example for the mobile: I need to leave my system this way: It'slikethis: Thewebsystemneedstolookthisway: My,ontheweb,lookslikethis: HowcanIplac...
asked by 04.11.2017 / 20:49
1
answer

Constraints in the text field react

Is it possible for a text field to receive only the characters below? numeros | espaço | barra (/) | traço (-) The type field does not help me in this case, would it be nice to use the text type in this case?     
asked by 19.07.2017 / 23:37
2
answers

Child component, return to parent component REACT

I have the following modal: <Modal dialogClassName="clientes-modal" show={this.state.show} className="modal fade"> <Modal.Header className="bg-new"> <h4 ><i className="fa fa-plus"/> Novo Cliente</h4>...
asked by 24.05.2018 / 15:09
1
answer

ReactJS and routes

The ReactJS framework comes with the idea of web components. Well, it does not use MVC But what about routes? on a menu? how would I access my components correctly?     
asked by 21.07.2014 / 22:12