-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10089 from huwshimi/ua-subs-set-up-page
Set up the Advantage page to mount a React app
- Loading branch information
Showing
4 changed files
with
39 additions
and
470 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import { QueryClient, QueryClientProvider } from "react-query"; | ||
import { ReactQueryDevtools } from "react-query/devtools"; | ||
|
||
const oneHour = 1000 * 60 * 60; | ||
const queryClient = new QueryClient({ | ||
defaultOptions: { | ||
queries: { | ||
refetchOnWindowFocus: false, | ||
refetchOnMount: false, | ||
refetchOnReconnect: false, | ||
staleTime: oneHour, | ||
retryOnMount: false, | ||
}, | ||
}, | ||
}); | ||
|
||
const App = () => ( | ||
<QueryClientProvider client={queryClient}> | ||
<section className="p-strip is-shallow"> | ||
<div className="row"> | ||
<div className="col-12">Content</div> | ||
</div> | ||
</section> | ||
<ReactQueryDevtools initialIsOpen={false} /> | ||
</QueryClientProvider> | ||
); | ||
|
||
ReactDOM.render(<App />, document.getElementById("react-root")); |
Oops, something went wrong.