diff --git a/NodeReact.Sample/ClientApp/components/App.jsx b/NodeReact.Sample/ClientApp/components/App.jsx new file mode 100644 index 0000000..2ed9d33 --- /dev/null +++ b/NodeReact.Sample/ClientApp/components/App.jsx @@ -0,0 +1,26 @@ +import React from "react"; +import RootComponent from "./RootComponent"; +import HelloWorld from "./HelloWorld"; + +const App = ({ ...props }) => { + return ( + + + + + {props.title} + { + //DONT use defer or preload for hydration SCRIPTS, use async https://github.com/reactwg/react-18/discussions/114 --> + } + + + + + + + + + ); +}; + +export default App;