Use named exports
This commit is contained in:
parent
486e26ceeb
commit
6098f979ba
|
|
@ -1,11 +1,9 @@
|
|||
import React from 'react';
|
||||
|
||||
function App() {
|
||||
export function App() {
|
||||
return (
|
||||
<div>
|
||||
Hello, world!
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue