Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
| // npm i axios stream-concat | |
| import { pipeline } from 'stream/promises' | |
| import StreamConcat from 'stream-concat' | |
| import axios from 'axios' | |
| const API_01 = 'http://localhost:3000' | |
| const API_02 = 'http://localhost:4000' | |
| const streams = (await Promise.all([ | |
| axios({ |
| import {createStore} from 'redux'; | |
| const counter = (state = 0, action) => { | |
| const index = { | |
| 'INCREMENT': () => { | |
| return state+1; | |
| }, | |
| 'DECREMENT': () => { | |
| return state-1; | |
| }, |
Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |