[React]export
App.jsx
export const App = () => { return ( <> <h2>Hello</h2> <p>World</p> </> ); }
index.js
import ReactDOM from "react-dom"; import { App } from "./App"; ReactDOM.render(<App />,document.getElementById("root"));
App.jsx
export const App = () => { return ( <> <h2>Hello</h2> <p>World</p> </> ); }
index.js
import ReactDOM from "react-dom"; import { App } from "./App"; ReactDOM.render(<App />,document.getElementById("root"));