Questions tagged [react-fullstack]

React (sometimes styled React.js or ReactJS) is an open-source JavaScript library for data rendered as HTML.

375 questions
0
votes
0 answers

Replicate a component used in another page

I have two pages in my webapp, A and B. In page A, I have a component, which I want to use in B. So I copied the component from A and posted it in B. It looks like this:
Dam
  • 41
  • 1
  • 8
0
votes
0 answers

How to manipulate code in a html file stored at server side using Node.js?

I am working on a project in which I have a folder on the server-side. The folder contains HTML, CSS and JS files that can be used to deploy a static site. I need to manipulate the code in the HTML file based on the data entered by the user on…
toughyear
  • 148
  • 3
  • 12
0
votes
1 answer

make an update to backend database without changing password

I have an app in which users can track food trucks. On the user dashboard, users can update their location. Upon confirming the location update, the client sends a .put request to the backend. The problem is that the .put request is updating every…
Jevon Cochran
  • 1,565
  • 2
  • 12
  • 23
0
votes
1 answer

Api returning 404 on production

I have a next.js app and I'm trying to create an api. When I run it as development, the api's get called, but when I run it using next start I get a 404 error when calling the api's. Here's the relevant server.js code: app.prepare().then(() => { …
Jessica
  • 9,379
  • 14
  • 65
  • 136
0
votes
0 answers

React integration of asynchronous back-end call

I have this function in the back-end of my MERN (with M not for Mongo but MySQL) application. This function fetches all stocks in the database asynchronously and returns it as a callback. getAllStocks: function(callback) { var context =…
0
votes
1 answer

Sending an error from server to client - fullstack js

I am currently working on a first MERN fullstack (using mongoose). I am trying to cover all possible errors, including server side errors, and notifying the client. For example: I am trying to run the app while my local MongoDB server is not…
bondyr135
  • 5
  • 2
0
votes
0 answers

Deploying a full-stack Node JS application

I have just completed a full stack attendance tracking app for my team. I am an intermediate level programmer and took this experience to learn webdev. The app is isomorphic, fronted by HTML/CSS/Javascript and backed up Node; Express; Node Modules…
Raju
  • 25
  • 4
0
votes
1 answer

REACT.JS + FORMIK input field proble,

this is my first ever stack overflow question. I am trying to build a log-in page (making a full stack app with node express mongodb mongoose) and front end being REACT. I am running into an issue where the input field css does not register until I…
0
votes
1 answer

Deploy full-stack app with Heroku - Express back end, React front end?

I built my first full-stack app, with an Express back end and React front end, contained in the same project folder (see GitHub repo). The front end is contained in a folder called client. I deployed the app from the root directory -- on the…
nCardot
  • 5,992
  • 6
  • 47
  • 83
0
votes
1 answer

React-Redux ideal interaction with a database

If there is a complex Redux store for determining the states of many components throughout the app. What is the best pattern for when to save things to the DB? I see pros and cons to different approaches, but I am wondering what is standard for…
clayton groth
  • 199
  • 2
  • 16
0
votes
1 answer

How to execute React D3 component on localhost

I am trying to create a dendrogram using a D3 JavaScript component I found on Github. Here's the link: https://www.npmjs.com/package/react-d3-tree I am fairly new to this whole thing, so I am having difficulty figuring out how to use this to create…
0
votes
2 answers

creating a fetch to delete

I am currently creating a movie application and I am confused as to how I should set my fetch up to make a delete request. The way my app works is that the user can create an account, and create movie postings of their favorite movies and they are…
hannah
  • 195
  • 1
  • 12
0
votes
2 answers

(Design question) How to decouple front- and back-end to protect routing (backend) code? (Node.js - Express - React)

Context: I'm making a React website that draws information from the Google Sheets API and formats specific rows into a data visualization. There are columns I don't want to share because of sensitivity of information, and fortunately there are ways…
AlleyOOP
  • 1,536
  • 4
  • 20
  • 43
0
votes
1 answer

How do I make a post request from a react front-end to a node back-end? Getting 404

I'm trying to make a simple website where users can post things to learn the MEAN stack. When I'm handling the POST request, which will be handled and inputed to the MongoDB server through the back-end. React is on port 3000, and the server is on…
MERNSTACK
  • 11
  • 1
  • 1
0
votes
1 answer

Store x and y coordinates of mouse movements in a text file

Hello I'm new to fullstack development,The thing i'm trying to achieve is that have I these x and y coordinates which are generated by the mouse (cursor) movements ,which i want to store in a text file locally / on server side.How should i go about…
hdr
  • 1
  • 3