Skip to content

A sample code to render react file in node.js application

Notifications You must be signed in to change notification settings

Aneeshaik/react-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

Installation

A code template to connectreact.jsfile to existingnode.jsapplication. Creating react files in separate react folder. Accessing static files which are created byparcelindistfolder usingexpress.staticmethod.

Runnpm installit will installnpmin your project

Runnpm initit will initializenpm

Usingnpminstallexpress.js

Create new folder to write react code

Cd to react folder

Runnpm i react react-domit will install react and react-dom dependencies

Write code

Run the codenpx parcel index.html

Cd back to root folder -> run the codenode server.js

The code will run inhttp://localhost:3000/

About

A sample code to render react file in node.js application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published