---
title: "Discussion on \"React Tutorial using MERN stack\" | Hashnode"
description: "Discussion on \"React Tutorial using MERN stack\". Build a complete React app, step-by-step with the MERN stack\nIntro\nWhat?\nThis is a step-by-step tutorial that will help you get up to speed with React quickly, and also build a complete app with the MERN (Mongo-Express-React-Node) stack. You'll also ..."
url: "https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [React Tutorial using MERN stack](https://hashnode.com/post/react-tutorial-using-mern-stack?utm_source=hashnode&utm_medium=feed)

Build a complete React app, step-by-step with the MERN stack Intro What? This is a step-by-step tutorial that will help you get up to speed with React quickly, and also build a complete app with the MERN (Mongo-Express-React-Node) stack. You'll also ...

Jan 3, 2016 · hashnode.com  
Updated Sep 4, 2016  
Read the article

-   [#react](https://hashnode.com/tag/react)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#mern](https://hashnode.com/tag/mern)

## Written by

[Vasan Subramanian](https://hashnode.com/@vasan)

@vasan · Bangalore

  
[View profile](https://hashnode.com/@vasan)

Previous generation techie

I work with startups, specialize in web technologies, agile processes and devops. I also dabble around with Android programming.

## Responses 29

Markdown supported · ⌘↵ to post

[Himanshu Rana](https://hashnode.com/@RanaWebD)

[Aug 25, 2017](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/59a0253f08fe6b5021192ad5)

I also download ur code from github and run npm install after that when i run ur code this error show again..

Failed to load resource: the server responded with a status of 404 (Not Found) Failed to load resource: the server responded with a status of 404 (Not Found)

please please help me..

[Himanshu Rana](https://hashnode.com/@RanaWebD)

[Aug 25, 2017](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/59a021d008fe6b5021192986)

3.1 exercise files isn't working.. this error showing in chrome please help..

Failed to load resource: the server responded with a status of 404 (Not Found)

[Ramya Sri](https://hashnode.com/@Ramya)

[Jun 6, 2017](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/5936725901189b4384720cdb)

Thanks for great tutorial, This helps ReactJS beginners a lot.

Regards,

[ReactJS Online Training Institute](http://www.courseing.com/learn/reactjs-online-training)

[Siddharth Arora](https://hashnode.com/@siddhartharora)

[Mar 6, 2017](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/58bd9598a7b463f36941c93a)

-   [React Tutorial - Hook up to the data model](https://hashnode.com/posts/react-tutorial-using-mern-stack/React%20Tutorial%20-%20Hook%20up%20to%20the%20data%20model)
    
    ([facebook.github.io/react/docs/tutorial.html](https://facebook.github.io/react/docs/tutorial.html#hook-up-the-data-model))

I cannot find this link on the react website!

Can you please refer which part is it talking about?

[Michael Hildebrand-Faust](https://hashnode.com/@mhfaust)

[Jan 2, 2017](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/5869f040b99398bc30c44039)

In 2.2, the link "React Tutorial - Using react from npm" is no longer valid.

[Rosa Pham](https://hashnode.com/@rosa)

[Dec 5, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/5845f5b02dcc31212e739048)

I definitely will try this soon :)

[Abraham](https://hashnode.com/@aba_ml)

[Oct 29, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/581516e00db8e0564120eaf1)

As Carson and Justin say, the Facebook React doc changed and the tutorial should be updated whenever possible. But in the meantime you could follow this link as it is the documentation referred in here.

[http://chenglou.github.io/react/docs/tutorial.html](http://chenglou.github.io/react/docs/tutorial.html)

Peace out.

[Mar 7, 2017](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/581516e00db8e0564120eaf1#reply-58be085271b5c3d17ea67f27)

this points to the new tutorial, what happened to Chen lou's?

[Carson](https://hashnode.com/@mesostables)

[Oct 25, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/580ec8855fec191d85b15082)

It looks as though Facebook redid their React documentation and a lot of the React Tutorial Links, referenced in this guide, have been moved.

[Justin Rich](https://hashnode.com/@jrich523)

[Oct 25, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/580ec8855fec191d85b15082#reply-580f83f15fec191d85b15301)

Yeah this whole thing needs to get redone, they keep saying its in the works, but i've been keeping an eye on this for months now with no updates. feels like its a lost cause... :(

[Vasan Subramanian](https://hashnode.com/@vasan)

[Oct 30, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/580ec8855fec191d85b15082#reply-58159154eefb9571412dc327)

Thanks, just realized this. Someone else posted a link to the original tutorial, here it is: [http://chenglou.github.io/react/docs/tutorial.html](http://chenglou.github.io/react/docs/tutorial.html). I'll work on an update when I find some time, just gotten too busy with regular work the last few months.

[Tony Brown](https://hashnode.com/@tbrown)

[Nov 4, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/580ec8855fec191d85b15082#reply-581c6eca944f78178b67e754)

@vasan when do you think you'll have this updated?

[Alex Anthony](https://hashnode.com/@alex_anthony)

[Oct 22, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/580bd424ae2041e2cbf1e41c)

This is great. I kept finding most tutorials annoying in that they show you what to do too much, so I appreciate the approach of "look at these references, then apply it to our example".

However, I think the React tutorial/reference you link to has changed a lot since you made it, so the links don't really work right any more. I looked at the originals from the Google cache, but otherwise I think this needs an update.

[Vasan Subramanian](https://hashnode.com/@vasan)

[Oct 30, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/580bd424ae2041e2cbf1e41c#reply-581590ff0db8e0564120ec6d)

Thanks, Alex. I am starting to work on the rewrite, roping in some help too ...

[Ross Tapson](https://hashnode.com/@rosstapson)

[Sep 14, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57d97952f72dd3705c1603be)

Thanks for a great resource. Certainly mern isn't quite as well documented and tutorialed as it could be for the benefit of people who aren't already pretty up-to-speed with js frameworks, so this is a really helpful thing you've done.

[Lê Quang Huy](https://hashnode.com/@lequanghuylc)

[Aug 24, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57bdc1cc93309a25047c5f9b)

It's great! But I just wonder if I have to build more complicated app, will I need view engine to render HTML? Is React Server side rendering enough? I haven't use it server-side.

[Kenan](https://hashnode.com/@ice32)

[Aug 24, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57bdc1cc93309a25047c5f9b#reply-57be1094387df20e0b9f919e)

React server side rendering will be enough. There is no need for other view engine.

[Vasan Subramanian](https://hashnode.com/@vasan)

[Aug 25, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57bdc1cc93309a25047c5f9b#reply-57be7d661351c2290bba2011)

I agree with Kenan that React server-side rendering will be enough. But pause for a moment and think why you need server side rendering. If you are expecting your app to be indexed by search engines such as Google or Bing, only then you need it. Otherwise, client side rendering is enough, it will be an SPA, it won't need any view engine. React is _the_ view engine.

[Lê Quang Huy](https://hashnode.com/@lequanghuylc)

[Aug 25, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57bdc1cc93309a25047c5f9b#reply-57bec61ccb80370904fc5710)

I'm just a little bit worried about some situations when we want to display different information for different people. like login, membership, restricted area... With React developer tools we can change state of Components to see the reaction afer. It may be a security problem for not well structured sites

[Zaicheng Qi](https://hashnode.com/@vmlinz)

[Aug 21, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57b9d1dfcbd842f32fe71321)

Great tutorial, it covers most of the important topics of building apps using mern, thanks for the effort.

[joebien](https://hashnode.com/@joebien)

[Aug 15, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57b17ab4fbdd622c03136490)

Do you answer the ruminate questions any where?

[Vasan Subramanian](https://hashnode.com/@vasan)

[Aug 15, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57b17ab4fbdd622c03136490#reply-57b198a0ab585a4d6c152933)

Sorry, no. That's because there's no right answer for many of them. They're just food for thought.

[joebien](https://hashnode.com/@joebien)

[Aug 15, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57b17ab4fbdd622c03136490#reply-57b2235793640a4803037b10)

I'm still hungry. Great lesson. I like the approach. Figure it out - then look at the solution. It broke me in. I'm looking at the note app now. I guess I'll try to make something after that.

[Diwakar M](https://hashnode.com/@magician03)

[Aug 12, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57ad80486bc86f5e4de31f33)

i just couldnt render anything in the browser, except the hello-world thing. Nothing is being from shown from app.js file, whats the probable error. I am in step 4.

[Vasan Subramanian](https://hashnode.com/@vasan)

[Aug 12, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57ad80486bc86f5e4de31f33#reply-57ad89c699827e534dee96ea)

It's very difficult to say ... that's why every step's source code is there in github. You could download the code and do a diff to see what is different between what you did and the working code.

[Diwakar M](https://hashnode.com/@magician03)

[Aug 12, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57ad80486bc86f5e4de31f33#reply-57ad8af04aa79a4b1d3cee7e)

Yeah, I've checked it with your source code, no errors in my code, what to do with transform.sh actually, no idea how to use that

[Vasan Subramanian](https://hashnode.com/@vasan)

[Aug 15, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57ad80486bc86f5e4de31f33#reply-57b19868ab585a4d6c15292f)

You need to run transform.sh to convert jsx to js.

[Vinoth S](https://hashnode.com/@vinoths)

[Jul 28, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/5799a559becb9ebac0d5fffd)

Hi All , I am new to MERN stack. Can you please suggest , how to run the gulpfile.js ? and how to create the bundle .js file?

[Vasan Subramanian](https://hashnode.com/@vasan)

[Jul 28, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/5799a559becb9ebac0d5fffd#reply-5799a6ecc691eeb2473cccae)

@vinoths : You should be running gulp, not gulpfile.js. gulp will look at the config in gulpfile.js and do the needful (that is, create bundle.js). Take a look a the github source referred to in section 7.2.

[Tomás Gutiérrez Meoz](https://hashnode.com/@togume)

[Jun 21, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57698a37a841f03b9338c705)

With the new version of MERN.io out, it would be great to have this tutorial updated to reflect the new updates. This asset is very helpful for the community, and one that I point many people to when I'm evangelizing about the project.

Thanks for all you do!

[Tomás Gutiérrez Meoz](https://hashnode.com/@togume)

[Jun 22, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57698a37a841f03b9338c705#reply-576aa44a152618ad1dc9389d)

Excellent, @somu! Happy to review/play with once that comes out.

[José Pablo Leandro Martín](https://hashnode.com/@arguser)

[Jul 20, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57698a37a841f03b9338c705#reply-578f7ed36407d9de1a2b0a86)

Great @somu many would love a tutorial on mern v2.0!

[Zach Thornton](https://hashnode.com/@zthornto)

[Nov 14, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57698a37a841f03b9338c705#reply-582a24bc51e4eadf5f526218)

Hi @somu, did the MERN v2.0 tutorial ever get released? Thanks!

[Anthony Lapenna](https://hashnode.com/@deviantony)

[Apr 5, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57042bcb0470f534fe42e452)

Thanks again for the tutorial, here is the code of my version up to section 11.

[https://github.com/deviantony/mern-tutorial](https://github.com/deviantony/mern-tutorial)

It is written in ECMAScript2015 with Airbnb's ESLint config, and uses Webpack instead of gulp + browserify. It may help people someone :)

[Anthony Lapenna](https://hashnode.com/@deviantony)

[Apr 6, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57042bcb0470f534fe42e452#reply-5704d6a60470f534fe42e51b)

Forgot to mention the use of mongoose indeed ;)

[Seán Behan](https://hashnode.com/@jjmax75)

[Apr 5, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57036f35f950faa9ab7ec44e)

Updated link for [Caveats of using Hash History](https://github.com/mjackson/history/blob/master/docs/HashHistoryCaveats.md)

[Vasan Subramanian](https://hashnode.com/@vasan)

[Apr 5, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57036f35f950faa9ab7ec44e#reply-57038120cf8469418375aed0)

Thanks. I have updated the link in the story.

[Seán Behan](https://hashnode.com/@jjmax75)

[Apr 5, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/57036f35f950faa9ab7ec44e#reply-5703b08ff950faa9ab7ec587)

This is an excellent resource. Not a tutorial, far more than that. Great teaching style

[Anthony Lapenna](https://hashnode.com/@deviantony)

[Mar 26, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56f61377722db0c35c20f456)

This tutorial is really nice. Got a question however, could you explain to me why did you choose the bootstrap CSS way over the react-bootstrap way for the table style in 11.4 ? Cheers !

[Vasan Subramanian](https://hashnode.com/@vasan)

[Mar 28, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56f61377722db0c35c20f456#reply-56f8bdddea33a5b266f2ddd1)

Thanks. As for the table styling, no strong reason. I figured that the Table class (for that matter, Grid and Row classes too) did not add any value over and above Bootstrap class names -- except for converting class names into react props. I was already familiar with the bootstrap class names and thought it unnecessary to learn one more thing.

[Anthony Lapenna](https://hashnode.com/@deviantony)

[Mar 26, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56f6131d9625fc49458f860d)

This tutorial is really nice. Got a question however, could you explain to me why did you choose the bootstrap CSS way over the react-bootstrap way for the table style in 11.4 ? Cheers !

[Sam Feder](https://hashnode.com/@samfeder)

[Mar 3, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56d8400f15b6588690ea8a4f)

This is awesome. Really excited to get crackin' on this.

[Curious](https://hashnode.com/@kumari)

[Mar 3, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56d81def1365afb3390aa182)

Hi,

I am new to this node js world with out knowing where i need to start in this vast learning. Spend so much time to find step by step tutorials which gives me confidence that i can build web app slowly . This is an Excellent tutorial with clear explanation.. after going through so many tutorials i ended up with this tutorial making me clear learning.. and getting more confidence that i can learn it and do it

[George Hu](https://hashnode.com/@georgehu)

[Feb 21, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56ca28cdc18dab333f49b260)

it will be nice you introduce webpack and redux as well. Nice article and informative. Thanks a lot.

[Aug 26, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56ca28cdc18dab333f49b260#reply-57c0bb64cb80370904fc592d)

i learn about `webpack` from two resources, `webpack` website and after installing `react` app with the new `create-react-app` program created by facebook. try using this app and `eject` command . after this read the `configuration` file .

[manoj kumar](https://hashnode.com/@manrox)

[Feb 11, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56bbf379309f156c4fd3a436)

Hi wonderfull , actually it took like months for me to figure out all these stacks individually,

you have put all together in a single page that's awesome

have you done login with MERN stack without using flux , if so can you send me the code

[Feb 11, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56bbf379309f156c4fd3a436#reply-56bc261dc5074a2fb5cdc2f6)

Yes, I have done login, but I've used google login. The code is not in a shareable form, though (it's intricately interwoven with the rest of the code). You may want to look at the npm package express-session to start off.

[manoj kumar](https://hashnode.com/@manrox)

[Feb 11, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56bbf379309f156c4fd3a436#reply-56bc332782ad622653b62eb2)

if you can share your email id i will share my code let me know if i am in right path thank you

[Kenan](https://hashnode.com/@ice32)

[Feb 5, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56b4a970a1ebef383f9b5788)

I'm having problems adding priority and status query to url. When I use `this.props.history.push`, like you did, I get a warning that it's deprecated.

But when I use `browserHistory.push({search:'?' + $.param(filter)})`, I get url that looks like this `[localhost](http://localhost:3000/?priority=p3&status=new#/bugs?_k=ai2nnc)` and it doesn't get recognized by `this.props.location`.

[Vasan Subramanian](https://hashnode.com/@vasan)

[Feb 8, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56b4a970a1ebef383f9b5788#reply-56b82f0ca0967efc587c7e12)

`this.props.history` is deprecated, because in history 2.0 the right way to do it is using `this.props.router`. If you use browserHistory, you are setting the URL's search path, not the search part of the hash. If you don't like `this.props.history`, then try hashHistory instead of browserHistory, that'll work because it will set the hash part correctly. Alternatively, read up on [Histories](https://github.com/rackt/react-router/blob/v1.0.3/docs/guides/basics/Histories.md#histories) and try using browserHistory instead of hashHistory (which is the default) in the router.

[Vasan Subramanian](https://hashnode.com/@vasan)

[Feb 8, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56b4a970a1ebef383f9b5788#reply-56b82fd1a0967efc587c7e16)

`find()` returns a cursor, and the only way to get to the first document is by calling `next()` on it. There is no 'current' document. We could have used the deprecated `findOne()` instead, which returns the first document directly.

[Kenan](https://hashnode.com/@ice32)

[Feb 10, 2016](https://hashnode.com/posts/react-tutorial-using-mern-stack/568963f09a4538cecc3ae583/comment/56b4a970a1ebef383f9b5788#reply-56bb5e59309f156c4fd3a404)

Thank you, I've managed to get it working. I'm using hashHistory and 'this.context.router.push'. I've switched to ES6 classes in the process, I don't know if that was necessary. Here's my code for BugList component if anyone needs it. [https://jsbin.com/wuvexa/edit?js](https://jsbin.com/wuvexa/edit?js)
