index.js (лежит в папке components, т.к. create-react-app создает index.js изначально)
Create the index.js file in your project directory and put the following code:
var express = require('express');
var router = express.Router();
var nodemailer = require('nodemailer');
и тд...