daily pastebin goal


a guest Jun 19th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react';
  2. import ReactDOM from 'react-dom';
  3. import injectTapEventPlugin from 'react-tap-event-plugin';
  4. import getMuiTheme from 'material-ui/styles/getMuiTheme';
  5. import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
  6. import { BrowserRouter, Switch, Route, Link } from 'react-router-dom';
  7. import routes from './routes';
  8. import HomePage from './src/Components/HomePage.jsx';
  9. import LoginPage from './src/Container/LoginPage.jsx';
  10. import SignUpPage from './src/Container/SignUpPage.jsx';
  12. // remove tap delay, essential for MaterialUI to work properly
  13. injectTapEventPlugin();
  14. ReactDOM.render((
  15.   <MuiThemeProvider muiTheme={getMuiTheme()}>
  16.     <BrowserRouter>
  17.       <Switch>
  18.         <Route path="/" component={HomePage} />
  19.         <Route path="/login" component={LoginPage} />
  20.         <Route path="/signup" component={SignUpPage} />
  21.       </Switch>
  22.   </BrowserRouter>
  23.   </MuiThemeProvider>), document.getElementById("app"));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand