Based on the scaffolder mern.io I was going through the code to see what was going on. I stumbled upon a .need method which looks like something related to es6 classes. I can't seem to find any usable info anywhere, so I ask what is the .need met...
There's something driving me crazy in React, and I need your help. Basically, when the user clicks "My Profile", I want to redirect to the user's profile. To do that, I use the following snippet  viewProfile = () => {     console.l...
I am trying to navigate a front end link on React JS app to an Express server.   Example  <a href="/pages">Pages</a>   In the Express server, I wrote this piece of code  app.get('/pages', (req, res) => {     res.send(&#...
I read a lot of articles about creating dynamic apps with express js using (ejs,handelbars, etc...),but i want my web app to be dynamic and single page by using react.  my purpose is to render template and insert dynamic data from express server to r...
i'm having issues calling the database content(images) in my react component. Any help in how to call it?  I've been trying to upload pictures on my App, but i want to upload the pictures from the database and call them in the front end (reac...
I'm creating a website with different pages. It uses React.js in the front-end and Express in the back-end. Basically it is a MERN-stack.   For navigation i use react-router-dom v4. Routing works like a charm. Now i have to protect one page. I...
I use the following project which use webpack https://github.com/Hashnode/mern-starter  I want to deploy it (to prod)  i get error   Error: Cannot find module './dist/manifest.json' This error is coming from https://github.com/Hashnode/mern-s...
I am making react project using express.js, mongodb, react.js, and node.js. and trying to fetch data from backend api which is running on port 5000.   When I check the api using postman, it is working. And the data is showing in the browser's con...
I got simple MERN stack app with form in react, which passes fields to redux state. Redux connects with node/express on backend which saved data in MongoDB.   Form need to contain valid email (which is checked in react).   My task is to test app, but...
I am designing profile page for my site using MERN stack. Now my question is how do I upload the image from local machine and save it to the database and also displaying it in the profile page...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.