# NodeJs w/templating engine or ReactJS

**URL:** <https://forum.freecodecamp.org/t/nodejs-w-templating-engine-or-reactjs/244137>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [December 6, 2018, 6:06am UTC](https://forum.freecodecamp.org/t/nodejs-w-templating-engine-or-reactjs/244137 "2018-12-06T06:06:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdxdave](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pdxdave/32/104517_2.png) [@pdxdave](https://forum.freecodecamp.org/u/pdxdave)\
**Post date:** [December 6, 2018, 6:06am UTC](https://forum.freecodecamp.org/t/nodejs-w-templating-engine-or-reactjs/244137/1 "2018-12-06T06:06:28Z")

</div>

Hi,

So, been spending my time on NodeJS and had the following question. Is ReactJS simply an alternative to NodeJS with a templating engine (e.g, pug, ejs, handlebars)? Yes, I know this is very simplified, but is that pretty much the difference? I’m trying to decide which I should be spending my time on. Perhaps they can be used together??

Thanks,

---

<div class="post-metadata">

**Author:** ![Layer](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/layer/32/82898_2.png) [@Layer](https://forum.freecodecamp.org/u/Layer)\
**Post date:** [December 6, 2018, 7:18am UTC](https://forum.freecodecamp.org/t/nodejs-w-templating-engine-or-reactjs/244137/2 "2018-12-06T07:18:40Z")

</div>

> Is ReactJS simply an alternative to NodeJS with a templating engine

Nope o.o  
React is a front-end library. It gives you the ability to interact with the DOM in a different way, much more **react** ive and to write js in a different way, more ‘natural’ (you use one single html file where you inject components, and you can write self-contained components to use them wherever you want). It come with _a lot_ of other fancy stuff but these characteristics are the more evident ones i think^^.  
Nodejs is ‘something’ that let js works out of the browser. Is something totally different.

That said you can use both to render html pages but obviously what an aimed front-end library can do is much more than what a template engine could ever image 😛

> Perhaps they can be used together??

They are _usually_ used together but they are used to achieve different tasks: with react you manage the front-end stuff, when it comes to the backend story it’s time to warm up your node skills 😉

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 2, 2021, 11:23am UTC](https://forum.freecodecamp.org/t/nodejs-w-templating-engine-or-reactjs/244137/3 "2021-02-02T11:23:53Z")

</div>


