Linked Questions

5 votes
1 answer
17k views

I am new to ReactJS, and somewhat understand that this question is duplicated to numeral questions in SOF. But I hope someone can give me some directions and clarifications on some concepts of React. ...
Ellery Leung's user avatar
7 votes
1 answer
3k views

I am quite new with react and am probably making a silly mistake. I am trying to make an api call with axios that returns a promise. When this promise resolves I would like to pass the result of this ...
user1584120's user avatar
  • 1,261
0 votes
1 answer
709 views

Am trying to place autosuggest with api result. import React, { Component } from "react"; import Autosuggest from "react-autosuggest"; import axios from "axios"; // When suggestion is clicked, ...
Cherry g's user avatar
  • 276
2 votes
0 answers
262 views

I have a problem: I am Loading data from MySQL Database and pasting them in a treeview form however, I keep on getting this error mentioned in the title, and it logs in an infinite loop. What I ...
edargham's user avatar
0 votes
0 answers
24 views

This fetch request: var url = 'api/assetName/?id='+id; fetch(url, { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, ...
Ed Lynch's user avatar
  • 623
1 vote
4 answers
3k views

I am trying to use axios to get data from the api (https://reqres.in/) and display in my react app. Before this I fetched the data from the API using fetch method in javascript. Now I have tried ...
shreyaa's user avatar
  • 93
2 votes
1 answer
2k views

I am very new to react and I am having issues when it comes to passing data from one method to another method. Here is my react syntax: var url = "https://quotesondesign.com/wp-json/posts?filter[...
user avatar
2 votes
1 answer
652 views

I have a signup form and from server side, I check if field is empty, if it is, then I res.send("xxx"), then from fronend I want to set state to a message to be displayed. With my code (below) I am ...
javascripting's user avatar
0 votes
1 answer
488 views

I'm having problems with setting my state when a ajax call is successfully run. I want to update the state when the ajax process is completed. The text in the div stays on "Busy" instead of "Done", ...
Elvira 's user avatar
  • 1,450
-2 votes
2 answers
279 views

import React, {Component} from 'react'; import './App.css'; class App extends Component { render() { return ( <div className="container"> <LightningCounterDisplay/> </div> ...
ko_ma's user avatar
  • 1,031
0 votes
1 answer
62 views

I have a problem when I develop a react web application. Here's my code: class TableContentRow extends React.Component { render(){ return( <tr> ...
Victor Diao's user avatar
0 votes
0 answers
42 views

How to loop and map value from API inside JSX in React.js? And for mapping what are the thing I've to import? My Code: eventlistClick (){ var apiBaseUrl = "http://api.eventsacross-stage....
Riya Kapuria's user avatar
  • 9,930