Skip to content

Instantly share code, notes, and snippets.

@ethan-deng
Last active January 8, 2016 21:45
Show Gist options
  • Select an option

  • Save ethan-deng/905c027234c074e5ad61 to your computer and use it in GitHub Desktop.

Select an option

Save ethan-deng/905c027234c074e5ad61 to your computer and use it in GitHub Desktop.

React material-ui installation

  1. npm install material-ui --save

  2. npm install react-tap-event-plugin --save

  3. Add Google font to SCSS

@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500);
  1. Add CSS
html {
  font-family: 'Roboto', sans-serif;
}

If see this error: Uncaught TypeError: Cannot read property 'componentWillLeave' of undefined

Delete node_modules folder and re-run "npm install".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment