Questions tagged as 'react'

0
answers

how to modify status within a function of the firebase api

I'm trying to implement a user registry using auth and firebase database. The idea is that a user log in with his facebook or google account and if he had never entered before, he saves his data and also goes to an instance where he must choose...
asked by 09.05.2018 / 18:27
0
answers

Interpolate javascript in html loaded from mongoDB with React

The problem is the following: I bring the HTML from MongoDB and charge it in react with: <div dangerouslySetInnerHTML={{ __html: products.content.title }} /> It is displayed correctly. Now, what I want is that in the HTML that I po...
asked by 05.05.2018 / 20:49
1
answer

How can I limit the elements in a FlatList in React Native?

I'm trying to limit the elements, in this case the posts, I just want to show 4 posts. My Code: componentDidMount() { return fetch(ConfigApp.URL+'json/data_posts.php') .then((response) => response.json()) .then((responseJs...
asked by 06.05.2018 / 00:16
0
answers

How can I get the name of a json with fetch () in React

I would like to destructurize a json to get the name, email and address of the api, but only print the json on the console, does not work correctly <p>{props.nombre}</p> , what is my error or how can I get those v...
asked by 05.05.2018 / 06:27
0
answers

Someone knows how to make webpack-dev-server resolve the parameters in the URL

This is the configuration in webpack.config.js output: { filename: 'bundle.min.js', sourceMapFilename: '[file].map', path: path.resolve(__dirname , 'dist/assets'), publicPath: '/assets/' }, devServer: { contentBase: './dist',...
asked by 19.03.2018 / 19:35
0
answers

Return to React complex structure with objects and arrays Nested Map

Hello friends, some capo that can help me, I tell you; I receive this data with this structure of an API, how could I render the errors? map, foreach ??? It is an object that contains an array with errors, that array receives objects that at...
asked by 09.03.2018 / 14:58
0
answers

Get points for a map of a promise and show them in the render

I'm trying to show the data that comes from a promise getTiendas in the const that defines the GoogleMaps markers but I'm not making it, what is wrong? import React from 'react'; import AppBar from 'material-ui/AppBar'; import IconButton fro...
asked by 26.02.2018 / 22:38
0
answers

Why is the image not shown when I compile the command npm run build, in React?

I have the following problem, I am importing an image and with the command npm start if it is shown, but when I do the command npm run build, it turns out that it does not appear, but navigating in its DOM, its route is fine. Reading I found tha...
asked by 23.01.2018 / 21:03
1
answer

How to solve this Error in webpack

This is the error ERROR in ./index.js 1 Module not found: Error: Can not resolve './index.css' This is my index.js import React from 'react'; import ReactDOM from 'react-sun'; import './index.css'; import App from 'App';     
asked by 10.01.2018 / 16:34
1
answer

authenticate with express + react + redux?

Can someone recommend me what is the best way to authenticate with express + react + redux? I'm not sure if I use passport or json token? who has been able to protect api with express!     
asked by 12.12.2017 / 20:53