Check out example codes for "material ui". It will help you in understanding the concepts better.

Code Example 1

$ npm install @material-ui/core

Code Example 2

$ npm install @material-ui/core

Code Example 3

$ npm install @material-ui/core

Code Example 4

$ npm install @material-ui/core

Code Example 5

$ npm install @material-ui/core

Code Example 6

import TextField from '@material-ui/core/TextField'

<TextField
                id="slots" 
                type="number"
                min={1}
                defaultValue="1"
                className="TextField pa2" 
                onChange={handleChange} 
                label="number of slots" 
                InputProps={{ 
                    inputProps: { min: 1} 
                 }}
                InputLabelProps = {{
                    shrink:true,
                }}/>

Code Example 7

$ npm install @material-ui/core

Learn ReactJs, React Native from akashmittal.com