Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions NodeReact.Sample/ClientApp/components/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from "react";
import RootComponent from "./RootComponent";
import HelloWorld from "./HelloWorld";

const App = ({ ...props }) => {
return (
<html>
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{props.title}</title>
{
//DONT use defer or preload for hydration SCRIPTS, use async https://github.com/reactwg/react-18/discussions/114 -->
}
<script src="client.bundle.js" async></script>
</head>

<body>
<HelloWorld name={props.title}></HelloWorld>
<RootComponent {...props} />
</body>
</html>
);
};

export default App;