react matrial' code example
Example 1: material ui react
npm install @material-ui/core
npm install @material-ui/icons
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
Example 2: material ui react
CDN
You can start using Material-UI with minimal Front-end infrastructure, which is great for prototyping.
Two Universal Module Definition (UMD) files are provided:
one for development: https://unpkg.com/@material-ui/core@latest/umd/material-ui.development.js
one for production: https://unpkg.com/@material-ui/core@latest/umd/material-ui.production.min.js
Material-UI is available as an npm package.
npm
To install and save in your package.json dependencies, run:
npm install @material-ui/core
yarn add @material-ui/core