convert to ES2015 imports
This commit is contained in:
parent
2f882ae8cd
commit
6d981c6fdf
@ -1,7 +1,8 @@
|
||||
const express = require('express'); // CommonJS module syntax
|
||||
const React = require('react');
|
||||
const renderToString = require('react-dom/server').renderToString;
|
||||
const Home = require('./client/components/Home').default;
|
||||
import express from 'express';
|
||||
import React from 'react';
|
||||
import { renderToString } from "react-dom/server";
|
||||
import Home from './client/components/Home'
|
||||
|
||||
const app = express();
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
|
Loading…
Reference in New Issue
Block a user