From 1bb8457f85fd4d5c8cc919225cded17d068f367a Mon Sep 17 00:00:00 2001 From: ZHAO Jinxiang Date: Tue, 12 Mar 2019 14:33:18 +0800 Subject: [PATCH] change default import into named import --- packages/react-scripts/template-typescript/src/App.test.tsx | 4 ++-- packages/react-scripts/template-typescript/src/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-scripts/template-typescript/src/App.test.tsx b/packages/react-scripts/template-typescript/src/App.test.tsx index a754b201bf9..e0f09ab57a4 100644 --- a/packages/react-scripts/template-typescript/src/App.test.tsx +++ b/packages/react-scripts/template-typescript/src/App.test.tsx @@ -1,5 +1,5 @@ -import React from 'react'; -import ReactDOM from 'react-dom'; +import * as React from 'react'; +import * as ReactDOM from 'react-dom'; import App from './App'; it('renders without crashing', () => { diff --git a/packages/react-scripts/template-typescript/src/index.tsx b/packages/react-scripts/template-typescript/src/index.tsx index 87d1be55189..367f2c8f213 100644 --- a/packages/react-scripts/template-typescript/src/index.tsx +++ b/packages/react-scripts/template-typescript/src/index.tsx @@ -1,5 +1,5 @@ -import React from 'react'; -import ReactDOM from 'react-dom'; +import * as React from 'react'; +import * as ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker';