The antd-mobile2.2 version officially says that there is no need to configure a high-definition solution, so how to use rem for mobile adaptation? Please give an example to illustrate

clipboard.png
as shown in the picture, the latest version of creat-react-app+antd-mobile,antm says that there is no need to configure HD solutions: https://github.com/ant-design.

Apr.01,2021

set fontsize of body , and then divide the pixel values of all styles by this fontsize in units of rem .


clipboard.png

the official website makes it very clear

Menu