简体   繁体   中英

How to display my react application as desktop view on mobile?

I know I can use media query in order to make the design responsive. but I do not want to do that now. what I would like to do is when the user load the app on mobile, my react app detects that and display the app as desktop view on mobile.

You can change the meta link in the index.html to display a desktop version:

<meta name="viewport" content="width=1920">

Instead of the responsive version which is:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

you will find index.html in the public folder

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM