Skip to content

Instantly share code, notes, and snippets.

@neenhouse
Created June 1, 2020 15:30
Show Gist options
  • Save neenhouse/f108f862c346de9c0fe410d4260af9d5 to your computer and use it in GitHub Desktop.
Save neenhouse/f108f862c346de9c0fe410d4260af9d5 to your computer and use it in GitHub Desktop.
Federated AppShell
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