Created
June 1, 2020 15:30
-
-
Save neenhouse/f108f862c346de9c0fe410d4260af9d5 to your computer and use it in GitHub Desktop.
Federated AppShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { HashRouter } from "react-router-dom"; | |
const AppShell = React.lazy(() => import("appshell/StandardLayout")); | |
import {Photos} from './Photos'; | |
function App() { | |
return ( | |
<HashRouter> | |
<React.Suspense fallback={null}> | |
<AppShell title="Property Details Page"> | |
<h3>Property Details</h3> | |
<Photos /> | |
</AppShell> | |
</React.Suspense> | |
</HashRouter> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment