Questions tagged as 'react'

1
answer

How important is .env in React?

I'm developing a website in React and I came across the .env file and it contains the following script NODE_PATH=./src for what would be its importance in React? Because my server only worked when I include this file in the project direct...
asked by 15.06.2018 / 15:59
1
answer

How to navigate with the react-router-dom when an action occurs

Hello, I'm starting to work with React and I'm doing an integration with Firebase. My problem is this, I can already trigger all the actions I need, but when I fire my last action from USUARIO_ENTRAR_SUCESSO I need to react-router-dom...
asked by 16.06.2018 / 17:58
1
answer

React Native Maps

I'm trying to implement the React-native-maps library in my project, when I run react-native run-android I get this error in CMD: * Where: Build file 'C:\Users\Henrique\Documents\New folder\NoExpo\AwesomeProject\node_modules\react-native-maps\...
asked by 06.05.2018 / 23:36
1
answer

How to enable data retrieval via Wordpress API

I wanted to start learning React.js and for this I decided to do a theme written in React for my wordpress, using the 'new' WP API functionality. How do I access the API from my computer? I know I have to authorize the API call, but I do not kno...
asked by 23.04.2018 / 19:31
2
answers

Retrieve the value of a props in the child component

I'm a beginner with React and I'm having a hard time recovering the value of a props in a child component. I have a component called Search, which when I click on a button, I pass via the value props to another component, which I called Map I ca...
asked by 28.03.2018 / 20:06
1
answer

Global State using reactjs

I'm starting in the reactjs and I need to do a global state to hide / show a div but the click that hides this in another file that contains another state, how do I make it global?     
asked by 22.03.2018 / 15:10
1
answer

React Native Maps - CSS HELP

I'm trying to make an icon look under the mapview in my project, like this: Butnowitlookslikethis: Code:<Viewstyle={styles.viewMaps}>{this.state.ready&&this.state.region&&this.state.region.latitude!=null&&this.s...
asked by 08.05.2018 / 22:35
1
answer

Paste input number text into Reactjs

Hello, I need to get the typed text inside two input's number when I click on the generate serial button I have the following structure import React, { Component } from 'react'; import { Grid, Row, Col, FormGroup, ControlLabel, Form...
asked by 28.02.2018 / 22:25
3
answers

How to add HTML with onClick event in React

It may seem like a repeated question, but the examples I found are complicated and need a pre-defined array, I do not have that, I'd like to know the simplest way to add an element to the DOM with React, it's like jQuery and I should change the...
asked by 01.03.2018 / 21:23
1
answer

Why use StyleSheet.create?

Why use StyleSheet.create ? When starting a new project ( react-native init test , the project comes with style as follows. const styles = StyleSheet.create({ container: { }, welcome: { fontSize: 20, textAlign...
asked by 16.02.2018 / 15:30