From 6098f979ba9ff729df25cddd1025c9679910ed83 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Thu, 1 Oct 2020 21:15:01 +0300 Subject: [PATCH] Use named exports --- src/App.tsx | 4 +--- src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 00eb063..44964ba 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,11 +1,9 @@ import React from 'react'; -function App() { +export function App() { return (
Hello, world!
); } - -export default App; diff --git a/src/index.tsx b/src/index.tsx index 6832e78..04a9dcd 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,7 +1,7 @@ import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; -import App from './App'; +import { App } from './App'; ReactDOM.render(