install materialui code example

Example 1: install material ui

// usando npm
npm install @material-ui/core

// usando yarn
yarn add @material-ui/core

Example 2: material ui install

// npm
npm install @material-ui/core

// yarn
yarn add @material-ui/core

Example 3: react js material ui

//install in the terminal
$ npm install @material-ui/core

// use the CDN 
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />

//on the component
import { Button } from '@material-ui/core';

function App() {
  return <Button color="primary">Hello World</Button>;
}

Example 4: material ui

$ npm install @material-ui/core

Tags: