Most voted "react" questions
It is an open source Javascript library for creating user interfaces. It is maintained by Facebook, Instagram and a community of individual developers and other companies
Learn more…1,420 questions
Sort by count of
-
1
votes1
answer784
viewsReact Native installation error
I am trying to configure the environment of the Active Act on my computer. Able to install the choco package manager. But when I try to install python2 with the command: choco install python2 this…
-
1
votes1
answer155
viewsError in React-Native: does not communicate with AVD or Devices
I came across the following error: my app could not communicate with the android AVD nor with my Device. Both are connected and working...…
-
1
votes1
answer162
viewsStructure in "tree", how to iterate on it?
Look at the picture: I’m trying to clone a page using the concepts of immutable. Each page has some features and the feature I must prepare before saving the page in the state(state) is "localId" By…
-
1
votes1
answer93
viewsHow to list a Graphapi response with React?
I have been trying for days to create a simple list of the names of the events I receive from a request for Graphapi from Facebook. The object I receive is the following: How do I make a list of…
-
1
votes1
answer126
viewsConnect Flask Restless API to React (Admin-on-Rest)
I’m learning to work with flask and React to create a Rest API (with flask-Restless) and a Client (with React, Admin-on-Rest). I already created the Flask Api with Reastless. I’m looking for some…
-
1
votes0
answers36
viewsRead values from a bluetooth, in a React application
I have an app in React and I have a Bluetooth connected to an Adian. When I send a value to bluetooth, I’d like to read it in my React app, but I can’t find how to do it.
-
1
votes1
answer720
viewsReact-router not rendering pages not found correctly
I’m developing an application using React + React-router + Express to render to the server and injecting it into an EJS view. It is working properly, but I noticed that when not finding a route as…
-
1
votes1
answer97
viewsStructuring the React project
Galley, I created a React-Native project and I want to structure along with folders, for example create the screens folder to create the. The beginner doubt. Whenever I run the project it is…
-
1
votes0
answers164
viewsRedux-thunk - Dispatch is not a Function
Hi, I’m having trouble with the redux-thunk. The console shows me the error saying that the dispatch is not set within my action, I tried to give a console.log of the arguments I get in the function…
reactasked 7 years, 10 months ago Eduardo Sganzerla 111 -
1
votes2
answers99
viewsDoubt REST - POST
I wonder if it is possible after the resolution of the Promise of a POST if I can get the result and turn into an array Ex: axios.post(http://localhost:5000/api/horario/,{ Nome: nome, Horario:…
-
1
votes2
answers599
viewsDynamic imports in Javascript
I need to dynamically import paths to Assets from an application, for example: var cliente = clienteX import ../../caminho/${cliente}/caminho/arquivo.less It will not be changed at runtime, it would…
-
1
votes1
answer2264
viewsReactjs - How to run AJAX calls?
I’m developing a project in React (first time I’m working with React) and I’m having doubts at the time of running calls to the server, be a GET or POST. I even managed to perform this task, but in…
-
1
votes1
answer1609
viewsAdding Component Dynamically in React
I’m trying to dynamically add one component inside another in React. So that I click on some element and in onClick it adds this component together to the specified div. I tried to do it this way:…
-
1
votes0
answers147
viewsProblem with input and autofocus
I’m having a little problem with inputs... I have two inputs: the first has autofocus and the other does not. However, whenever I type in the second input, it loses focus and focus goes back to the…
-
1
votes1
answer65
viewsIs there any way to get what the user is hearing?
I wonder if you have any mode or even a lib so I can get the audio player information from the mobile phone, such as music duration, name, album etc. with React.
-
1
votes2
answers972
viewsLink to React Native phone
Someone would know how to put a link to open the smartphone’s Telefonic call when the user clicks on the phone number in apk ? in waiting ...
-
1
votes1
answer542
viewsUpdate status by observing the date change
Hello, I’m making a component that shows the current date, but I would like to update it as soon as there is the change, but I was only able to leave it active for change with a timeout, which I…
reactasked 6 years, 8 months ago André Agenor 93 -
1
votes1
answer279
viewsHow to pass sentences to a variable and then display randomly
Well, I started programming yesterday in React Native and still do not understand very well how to do things.... I need to pass a series of sentences to several variables, each variable a sentence,…
-
1
votes2
answers3949
viewsHow to change the style of an React component by clicking a button?
Guys I’m using React and I’m creating some components, I’m very beginner in React, I’m styling the components in an external css file and importing, but I need to make a side bar q need to open and…
-
1
votes1
answer938
viewsHow to update properties in React "setState"
I’m trying to add objects to 2 properties of the Fecthapis component. I make the call to both Api’s, and I get the request with the expected objects. However, when I try to include these objects in…
-
1
votes1
answer1610
viewsDownload PDF Files in Reactjs
I have a small problem in downloading PDF files I have a API that returns a array bytes with the type: "application/pdf", if I call straight in my browser route. Ex: localhost/api/download/pdf/{id}…
-
1
votes0
answers55
viewsProblem with Infinite Scrolling in React
I’m trying to do an "Infinite Scrolling (I used this Realscout plugin)", but even without reaching the bottom of the page, it always makes new requests, without stopping. Look at the image: Follows…
-
1
votes0
answers51
viewsReact-Native init proxy-related error
I’m not able to configure my first app, it’s something related to proxy, but I have no idea how to solve this I’ve researched everything that is place someone knows how to solve?…
-
1
votes1
answer2088
viewsHow to create an React component from select that in the bind event "change" picks the right value that was selected?
Good night! I am trying to make a select component that is used more than once within another Parent component. To create the "option" tags, I map inside the array I created as a state of the…
-
1
votes1
answer2112
viewsWhy shouldn’t I use Jquery with React?
What would be the downside of using jQuery with React? Because I am transforming a site that is all jQuery for React and I see in many forums people saying that it is not a good practice to use…
-
1
votes1
answer270
viewsReact build vs (?) Webpack?
I’m taking a React course. I have an understanding of what React is, and what problem it solves. However when I put in CMD "create-React-app x" it shows some other commands that I can use in this…
-
1
votes1
answer219
viewsDynamic background with CSS? How to do it?
I have a question, it is possible to exchange background as a condition? Example: function A() { if (meuArray.length === 7) { eu quero background verde } else { background azul } } At first I’m…
-
1
votes1
answer71
viewsI am having the problem with webpack 404 "cannot get". What can it be?
Here my config: var path = require('path'); const webpack = require('webpack'); const publicPath = '/dist/assets/'; module.exports = { entry: './src/index.js', devtool: 'cheap-module-source-map',…
-
1
votes1
answer239
viewsIs it possible to use your phone camera in a Web App with React?
People need to develop a web app with React, "It’s not React Native", and it will be necessary to use the camera phone just to take a photo, is that possible with React? there are some lib for that?…
-
1
votes0
answers974
viewsEnable method POST wordpress/Woocommerce
I’m trying to send a POST for Woocommerce/wordpress using the API Woocommerce-api, but I only get the error 401 what it says: Fetch API cannot load http://wc-project.dev/wp-json/wc/v1/orders...…
-
1
votes1
answer296
viewsHow to access an object nested in another object dynamically?
I have the following JSON { "Id":"ssjsjs", "Name":"STFksks S.A", "Alias":"STF jnsns S.A", "DocumentId":"010101", "Accounts":[ "hahadkjkjteste" ], "CountryCode":"BRA", "Country":"Brasil", "Address":{…
-
1
votes1
answer38
viewsJest ignoring package.json specifications
I am implementing tests in my web application in React with jest. As it was started with the "create-React-app" it was easy to set up the environment. But for some reason jest seems to ignore…
-
1
votes1
answer176
viewsIs there any way to make a component listen to a React Native function?
I need to make a bind to a function that returns me if an item is marked or not, however the function that returns me this is only executed once, there is a way to bind to that function? <List…
-
1
votes3
answers295
viewsWhat do I need to know in order to use React as my front-end library?
My doubt is divided into three points: Are there types of applications where the use of React is very efficient? Or where it would be dispensable or not recommended? What would be? What other…
reactasked 6 years, 4 months ago Joao Paulo 11,760 -
1
votes0
answers632
viewsRequest async Redux Sauce using Redux-thunk
Good afternoon guys, all right? I need help with actions on reduxsauce when it is a request async. The problem that the action needs to wait for the file to be solved, you need to use the…
reactasked 7 years, 2 months ago Fabio Luis Alexandre 167 -
1
votes0
answers169
viewsWhich Front End Framework should I invest in
I have seen many posts and comments not counting numerous job openings that require different frameworks Frontend as Angular(JS, 2, 4), Reactjs, Vuejs that by the reads I have done seem all able to…
-
1
votes1
answer229
viewsHow to set a value for a span with React
I was trying to do that when the users pressed the button of Ubmit, it checked what the user entered, and if it was not valid it sent an error message through the span.Note:I cut the code to make it…
-
1
votes1
answer110
viewsSyntax Error. Unexpected token '=' in React
When I try to run dev-server it returns an error in the console that I cannot identify what is generating it webpack.config.js iconst path = require('path'); module.exports = { entry:…
-
1
votes2
answers113
viewsDoes the component import order interfere with performance?
Today I wondered about a question in the component import order, whether it be this in Angular, React, or Vue. Would the component import order refer to order of use, improve performance or nothing…
-
1
votes0
answers333
viewsRotate CSS3 or Javascript image
How do I know I have to rotate an image to display it on a page? I can check this in css or it has to be in javascript? It is that on Dashboard of a site that I developed the image appears upside…
-
1
votes0
answers55
viewsError saving Logs and Images - Detox[12591] ERROR: [exec.js/EXEC_FAIL, #6]
I am studying the Detox lib for automated testing. I can run the tests normally and they pass, but when I add the command --record-logs all it returns me this error. From what I understand is some…
-
1
votes1
answer1708
viewsConsume API with React
someone can help me how I can get this API ## Cadastro ```sh $ curl --request POST \ --url https://dev.people.com.ai/mobile/api/v2/register \ --header 'content-type: application/json' \ --data '{…
-
1
votes1
answer1133
viewsIF-Else Reactjs Json condition
In the code developed in Reacjs below, it returns from a field containing a "displayPortraitLeft" key with values ranging from true to false, and depending on the value (true/false) obtained, I…
-
1
votes0
answers131
viewsGet data by POST on Reactjs
When I need to capture data in Reactjs via querystring, I use the command this.props.match.params.[NOME_DA_QUERY]. Does anyone know how to capture when this data comes by POST?…
-
1
votes0
answers237
viewsrequest for examples - how to embed React.Video in Javascriptxml?
I am currently developing a data frontend/visualization project where I need to incorporate the Node.js module React.Video, in Javascript, XML, or JSX. The project can be found at:…
-
1
votes1
answer296
viewsCalling class method within a prefix returns: Uncaught (in Promise) Typeerror: _this3.updateShelvesState is not a Function
Good Afternoon! I created a method called updateShelvesState which is called before the component is rendered, and onChange of another component called Book. This method takes an array and creates a…
-
1
votes1
answer113
viewswebpack localhost/sockjs.js.map not found
I have the following error regarding Socks.js.map, can anyone help me ? Failed to load Resource: the server responded with a status of 404 (Not Found) installed the latest version of webpack and…
-
1
votes1
answer82
viewsBreaking data divided by comma
I’m trying to make a tracker using Adian, a gps module and a gsm. I can receive the latitude, longitude and send to cell phone as SMS, but in cell phone I’m trying to build an application with…
-
1
votes0
answers55
viewsImport code in React Enable windows for Mac
I’m having a question with React Native. If I develop in the environment Windows, how do I pass this code on Mac to distribute the project to Android and IOS?…
-
1
votes1
answer1068
viewsPublish React.js windows server
I have an application developed with React + React-Redux and now that it is finished I need to publish. But when searching about it I didn’t find anything that explained or had a step by step how to…