Created
November 27, 2017 17:25
-
-
Save wschenk/2ad4804be4f8bbb88548e08af5506996 to your computer and use it in GitHub Desktop.
create-react-app index.js file using material-components-web css
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import registerServiceWorker from './registerServiceWorker'; | |
import 'material-components-web/dist/material-components-web.css' | |
import WebFont from 'webfontloader' | |
WebFont.load({ | |
google: { | |
families: ['Roboto:300,500,700','Material Icons'] | |
} | |
}); | |
ReactDOM.render(<App />, document.getElementById('root')); | |
registerServiceWorker(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment