material-ui react icons code example

Example 1: @material-ui/icons

yarn add @material-ui/icons

# NPM
npm install @material-ui/icons

Example 2: react mui icons

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

import RoomIcon from '@material-ui/icons/Room';

<RoomIcon />

Example 3: Using Material UI Icons in react

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

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

Example 4: material ui icons

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