Use named exports

This commit is contained in:
Rene Saarsoo 2020-10-01 21:15:01 +03:00
parent 486e26ceeb
commit 6098f979ba
2 changed files with 2 additions and 4 deletions

View File

@ -1,11 +1,9 @@
import React from 'react';
function App() {
export function App() {
return (
<div>
Hello, world!
</div>
);
}
export default App;

View File

@ -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(
<React.StrictMode>