Skip to content

Instantly share code, notes, and snippets.

@LukeSmetham LukeSmetham/App.js Secret
Created Sep 23, 2019

Embed
What would you like to do?
...
// Screens //
import Conference from 'screens/Conference';
import Login from 'screens/Login'; // <-- add this line
...
function App() {
return (
<ThemeProvider theme={theme}>
<Provider store={store}>
<Router history={history}>
<>
<Switch>
<Route path='/:conferenceAlias' component={Conference} />
<Route path='/' component={Login} /> // <-- and this line
</Switch>
<GlobalStyles />
</>
</Router>
</Provider>
</ThemeProvider>
);
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.