I am playing around with React and Node.js/Express separately. There are two files:
- React (build into HTML/JS) file
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
- Node.js/Express back-end (with the essential npm installed)
var express = require('express');
var app = express();
They work independently but now I am trying to connect the two so the back-end can serve static files to the front-end. I have been searching the web for instructions but most of them are using create-react-app to have the React App set up, which is not my intention since I am simply using React for javascript editing (for now).
Any help on connecting the two? Do I need to install more npm for this to work? Thanks.