Skip to content

Commit b5bb5ab

Browse files
committed
Change react imports back
1 parent da87b76 commit b5bb5ab

5 files changed

Lines changed: 6 additions & 8 deletions

File tree

examples/with-typescript/src/App.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22
import { render } from 'react-dom';
33

44
import App from './App';

examples/with-typescript/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22
import { Route, Switch } from 'react-router-dom';
33
import Home from './Home';
44

examples/with-typescript/src/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22
import logo from './react.svg';
33

44
import './Home.css';

examples/with-typescript/src/client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22
import { hydrate } from 'react-dom';
33
import { BrowserRouter } from 'react-router-dom';
44

examples/with-typescript/src/server.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import express from 'express';
2-
import React from 'react';
2+
import * as React from 'react';
33
import { renderToString } from 'react-dom/server';
44
import { StaticRouter } from 'react-router-dom';
55

@@ -12,9 +12,7 @@ const syncLoadAssets = () => {
1212
};
1313
syncLoadAssets();
1414

15-
const server = express();
16-
17-
server
15+
const server = express()
1816
.disable('x-powered-by')
1917
.use(express.static(process.env.RAZZLE_PUBLIC_DIR!))
2018
.get('/*', (req: express.Request, res: express.Response) => {

0 commit comments

Comments
 (0)