Questions tagged as 'react'

0
answers

How to import an external React component into Asp.Net

Hello, I wanted to import an external React component, generated in webpack (Bundle.js) to my Asp.net MVC application. I am trying to import the "Bundle.js" file to my page and render the React component in the babel script tag, but nothing happ...
asked by 16.02.2017 / 21:06
1
answer

Structure in "tree", how to iterate over it?

Look at the image: I'mtryingtocloneapageusingimmutableconcepts.EachpagehassomecharacteristicsandthecharacteristicthatImustpreparebeforesavingthepageinthestateisthe"localId" By clicking the "clone" link the following code is called: expo...
asked by 21.11.2016 / 14:01
0
answers

How to install and configure Markdown in the Meteor along with React? [closed]

I'm learning React along with Meteor, so I've seen React's official documentation using Markdown as a good practice against XSS. I downloaded it on the meteor with "meteor add markdown" but apparently I would have to set up something to run alon...
asked by 31.12.2015 / 21:01
1
answer

Problem with displaying HTML content using this.props.children with ngReact

I'm trying to present the content I inject into an Angular directive within a React component. See below the call to the component: <alert type="'danger'"> <strong>Alert</strong> Voluptatem facilis magnam, optio pr...
asked by 08.12.2015 / 20:30
1
answer

Problem in api call in React JS

I created a webapi in ASP.NET Core, and I need to consume it using React, the web api works normally, if I use curl or Postman among others, it works normally. The problem starts when I'm going to use React, when I try to make any requests for m...
asked by 04.10.2018 / 14:46
1
answer

Download PDF Files in ReactJs

I have a small problem downloading files into PDF I have an API that returns a array of bytes with type : "application/pdf" , if I call directly in the browser my route. Ex: localhost/api/download/pdf/{id} PDF download...
asked by 31.05.2017 / 20:57
1
answer

Hierarchy of requests with Await [closed]

Next ... I need to make a hierarchy of requests that depend on each other. I made the whole structure, but when I run the code they are solved asynchronously, without waiting for a request to be solved to follow the code just below. Here's...
asked by 06.11.2018 / 22:12
1
answer

How to access an object within an object, and its property name is a number?

Here is an example of the object in question: obj : { "bairro" : "Centro", "dAula" : { "Quarta" : true, "Segunda" : true }, "dVencimento" : "10", "dataCadastro" : "10/10/2017", "dataInicioContrato" : "27/11/2018",...
asked by 28.11.2018 / 05:11
1
answer

Filter the month inside an object extracted with Object.keys

I am studying react and made a cash flow application using firebase as database. I would like to make a query using "map ()" or some other way I would run the object showing only the entries of the month of sea , but I'm finding it difficult...
asked by 28.09.2018 / 15:38
2
answers

Problem with conditional on React

I'm trying to do a conditional where the active component depends on a state variable. this.state = { display: 0, } State 0 is the initial state, which is changed when the user clicks a button. Depending on the button the display varia...
asked by 03.12.2018 / 21:52