Questions tagged as 'react'

1
answer

Consume API with react

Can anyone help me with how can I consult this API? ## Cadastro '''sh $ curl --request POST \ --url https://dev.people.com.ai/mobile/api/v2/register \ --header 'content-type: application/json' \ --data '{ "email":"[email protected]", "name":...
asked by 19.09.2018 / 15:48
1
answer

Working with asynchrony using ReactJS

I have the following code: requireUsers = () => { this.users = database.ref('users') this.users.on('value', snapshot => { this.state.users = snapshot.val() Object.keys(snapshot.val()).map((value,key) => emails[...
asked by 04.11.2018 / 04:32
1
answer

Using React in backend and small projects

Is it possible to integrate the React application with some back end language? Can I apply React on small projects or only when there is a need? React came to break the standard web development paradigm, where I create separate files, each...
asked by 13.08.2018 / 22:35
1
answer

What are the real differences in creating a project with Expo and without Expo

Recently I saw several items that differentiated the 2, but currently the Expo , is very advanced, many things we needed to move in native modules, example, SQLite , Image manipulation, Camera, Splash Screens etc .. can already be ma...
asked by 14.05.2018 / 14:26
1
answer

Example input draw value and make console log with this value when you click the submit button with React

By clicking the submit button I want to take the value of input and make console log of the value entered by the user! I think it's simple but what I'm trying to do is more complex, but it's going to be implemented right now! Made with React...
asked by 04.07.2018 / 17:28
1
answer

What is the difference between Function and Class in React?

I am studying React now and I have a little doubt. What is the difference between the 2? From what I've seen, they both do the same thing.     
asked by 27.03.2018 / 16:06
1
answer

React Native and hybrid? [closed]

I wanted to know if react native and really hybrid, like ionic, that you program a code only and do export to both platforms (IOS / ANDROID), or similar to xamarin, that you do the 2 different codes. In project development I program as "only...
asked by 25.06.2018 / 20:06
1
answer

Make sum of the values of each equal item, stored in one object and store in another array

I am making an application using firebase and reactjs, which returns an object with the outflow. Since I am using chartjs to display a graph, I need to generate an array where each position would have the total sum for each month. My difficulty...
asked by 09.10.2018 / 21:51
1
answer

Problem when mapping api with Axios and React,

Good afternoon guys, are you okay? I'm trying to make an application with React, however, when trying to map a random API, to try to render the data, it can not return what I'm trying to pull. Would anyone know the problem? Ps: I had ty...
asked by 27.12.2017 / 21:03
1
answer

How to change the value of a defaultProps in a React component?

Good afternoon, I have a loading component that uses a default props. class Loading extends Component { render() { const loadingClasses = classNames({ 'loading': this.props.loading, }) return ( <div className={...
asked by 04.08.2017 / 17:47