@material-ui/core/styles#StylesProvider JavaScript Examples
The following examples show how to use
@material-ui/core/styles#StylesProvider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: App.js From git-brunching with GNU General Public License v3.0 | 6 votes |
App = () => (
<div className="App">
<StylesProvider injectFirst>
<Router>
<Switch>
{/* state is stored instead of creating a different route for each booking page because
it was easier to implement */}
<Route
path="/booking"
component={() => (
<BookingPage />
)}
/>
<Route
path="/restaurant"
component={() => (
<RestaurantViewBookingPage />
)}
/>
<Route
exact
path="/"
component={() => <LandingPage />}
/>
<Route component={NotFound} />
</Switch>
</Router>
</StylesProvider>
</div>
)
Example #2
Source File: index.js From pwa with MIT License | 6 votes |
ReactDOM.render( <Provider store={Store}> <RawIntlProvider value={intl.reactIntl}> <React.StrictMode> <ThemeProvider theme={theme}> <StylesProvider jss={jss}> <Router> <App /> </Router> </StylesProvider> </ThemeProvider> </React.StrictMode> </RawIntlProvider> </Provider>, document.getElementById('root') );