React (sometimes styled React.js or ReactJS) is an open-source JavaScript library for data rendered as HTML.
Questions tagged [react-fullstack]
375 questions
0
votes
0 answers
How do I resolve a MongooseServerSelectionError?
When I run my code, which should connect my database to my node server, nothing works out.
Here is the output I recieve.
Server is running on port: 5000
(node:1628) UnhandledPromiseRejectionWarning: MongooseServerSelectionError: Could not connect to…

Aaron Arnold
- 1
- 1
0
votes
2 answers
How to make nodejs and react use different ports
package.json file :
"start": "concurrently \"nodemon index.js --port 3000 \" \"react-scripts start --port 3000 \" ",
"start": "concurrently \"react-scripts start --port 3000\" ",
"build": "react-scripts build",
"server":…

3cirlces
- 105
- 11
0
votes
1 answer
I want to pass data from flask back to React and render html based on it
app.py
@app.route('/liveplots', methods=["POST", "GET"])
def liveplots():
global liveclass
return render_template('liveplotframe.html', image=liveclass.get_plot())
liveplotframe.html
So,…

janine
- 39
- 7
0
votes
2 answers
react :getting state variable is undefined error
This is my code:
state={
data:{},
place:''
};
handlePlaceChange = async (place) => {
const fetchedData = await fetchData(place);
this.setState({data:fetchedData, place:place});
console.log(data);
}
I am getting fetchedData correctly…

maddy
- 1
- 1
0
votes
1 answer
How to use React.js with backend using React Hooks and how to deploy it using heroku?
I want to connect the React front-end framework with my backend express.js and EJS so using React Hooks. But in express, we use app.get() when a request is made to our server while we use npm start with React to start our server on the localhost.…

Smile001
- 147
- 3
- 9
0
votes
0 answers
React-webcam on EC2 Instance
i am currently working on a MERN project which uses react webcam and have deployed it over an EC2 instance. The react-webcam works just fine on localhost but it doesnt throw an error or display the video when i run the project on the instance. Im…

Akhil
- 1
0
votes
2 answers
Should every part of a web app be a react component?
I haven't touched React in over 2 years, and a bit confused looking back at my old code. For example, if I were to build an instagram clone, would I utilize html templates and inject javascript as such as
Loading…

jeongjw
- 1
0
votes
1 answer
Create a Flask and React Full Stack Application
How do I create a website with a React Front end and a Flask backend?
I have created websites using flask and templates, and I have made pages using react, and now I would like to combine them.
I have tried a few things and the only things that…

Noe Horowitz
- 47
- 6
0
votes
1 answer
How to deal with issue when user doesn't exist
When the user doesn't exist for this rather than redirecting to signup page I got this error, also I
tried something to change but unable to find how I can do it successfully
Menu.js
import React,{Fragment} from 'react';
import { Link…
0
votes
1 answer
String array to Json using JS error converting half only
I have a problem with my below code when I want to convert array into JSON. Please see my code below:

Vaibhav Mishra
- 73
- 1
- 11
0
votes
3 answers
import React, from { useState } 'react'; not working
how to solve the problem, any idea form anyone?

aravindan
- 3
- 4
0
votes
1 answer
Vue have 2 class conditions
I am trying to learn vue and all about classes and having them be dynamic. I have an issue that I can't seem to find the solution for. I have a div and in it I want to have a class that depends on a variable such like this

Nathan Belete
- 111
- 4
- 11
0
votes
0 answers
React Toastify appearing constantly
I'm using this (below Redirect from react-router-dom) to move from my Edit component to Profile component after updating some user info.
Example:-

SunoKuni
- 37
- 6
0
votes
1 answer
how to create hyperlink to got to next component from one component in react like a tag does?
****(The main issue Link should work, but it should be encapsulate inside the router. If encapsulated than obviously , it would like nested router. which i dont want. i just want to render register component only when i click the link…

Ashiz Hamal
- 23
- 1
- 1
- 5
0
votes
1 answer
Full Stack React, Redux, Python/Flask, PostgreSQL Heroku application
Sorry if some of these questions are a bit amateurish, I'm an aspiring developer with a few decent projects under my belt. If you could help answer a couple of these questions it would be incredibly helpful.
I'm trying to tackle a pretty ambitious…