Questions tagged as 'reactjs'

0
answers

Error "Maximum call stack size exceeded" when using a component with fetch

I have this component that brings data from an API: class GetDPIData extends Component { constructor(props){ super(props) this.state = { data: null } } componentDidMount() { fetch('/api/dpi/') .then(res =>...
asked by 11.09.2018 / 17:36
1
answer

PASS DATA FROM ONE WINDOW TO ANOTHER IN REACT

My question is how can I pass data from one window to another if I bring the data through a JSON? The goal is that when I click on it send me X data to another window per response I show the code import React, { Component } from 'reac...
asked by 03.08.2018 / 19:58
2
answers

Convert Objecto String to Javascript Object

This is the string I get from an api, it is a string but not in json format, but in javascript object format, JSON.parse does not work because the key does not have double quotes "". "{text: 1}" //string Now I want to convert it to a javasc...
asked by 06.08.2018 / 01:43
2
answers

Problem with react-pdf when trying to run the project leaves Failed to load PDF file

I have tried to run the following code but I have not managed to read the PDF with the Reaction CLI, I hope you can help me, I leave the information: import React, { Component } from 'react'; import { Document, Page } from 'react-pdf'; // impo...
asked by 02.10.2018 / 07:00
1
answer

How can I pass parameters between screens in React Native?

My abilities with React Native are very basic, and what I want to get is the posts according to each category. Categories Screen import React, {Component} from 'react'; import { NavigationActions, DrawerNavigator, StackNavigator } from '...
asked by 14.04.2018 / 07:15
0
answers

You may need an appropriate loader to handle this file type

Trying to replicate an example of configuring an environment to work with React and Node , I get an error, implying as if it were not the loader respective to load and transpilar the files. [nodemon] restarting due to chang...
asked by 17.03.2018 / 17:11
1
answer

Render a component when the store changes in React

I am using Redux with React to implement a platform that processes sales invoices. The parent component imports several components in turn, one of them is the component with customer information, "SalesInfo" as indicated below: render() { cons...
asked by 23.02.2018 / 16:59
1
answer

React.createElement: type is invalid

I'm taking a tutorial to learn React JS , everything was fine, days ago I could run an example, simple, carrying out a recommended basic configuration, plus a few more add-ons that I add to recognize the version of Javascript . T...
asked by 12.02.2018 / 00:40
0
answers

How to put a div with css inside a REACT tooltip?

I have the following code where / AboutDescription / is a component that has a div loaded with information and styles css, and / ReactTooltip / is an NPM dependency, there is some dependency that allows me to create a tooltip, loading me the css...
asked by 13.01.2018 / 17:37
0
answers

Component sensitive to changes in the backend

In the UI of my app there are 2 lists and a form. A list is a team with no points awarded and the other list is the scores of teams already loaded. Each list is filled with information from their respective methods of my own Rest API. T...
asked by 02.01.2018 / 04:26