File tree Expand file tree Collapse file tree
examples/with-typescript/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ import * as React from 'react' ;
22import { render } from 'react-dom' ;
33
44import App from './App' ;
Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ import * as React from 'react' ;
22import { Route , Switch } from 'react-router-dom' ;
33import Home from './Home' ;
44
Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ import * as React from 'react' ;
22import logo from './react.svg' ;
33
44import './Home.css' ;
Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ import * as React from 'react' ;
22import { hydrate } from 'react-dom' ;
33import { BrowserRouter } from 'react-router-dom' ;
44
Original file line number Diff line number Diff line change 11import express from 'express' ;
2- import React from 'react' ;
2+ import * as React from 'react' ;
33import { renderToString } from 'react-dom/server' ;
44import { StaticRouter } from 'react-router-dom' ;
55
@@ -12,9 +12,7 @@ const syncLoadAssets = () => {
1212} ;
1313syncLoadAssets ( ) ;
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 ) => {
You can’t perform that action at this time.
0 commit comments