Can I render warning message if user's browser is not supported?

前端 未结 4 745
萌比男神i
萌比男神i 2021-01-01 20:48

I am working on a react application and customers want it to show a special message if user\'s old browser does not support (e.g. IE 9).

So

4条回答
  •  孤城傲影
    2021-01-01 21:27

    I think the best and most user-friendly alternative is to redirect the user to an exclusive ie.html page, where you can show instructions about how to download other browsers and just care about all IE stuff in that page only.

    This way you don't need to do anything with React, just add the lines below to your index.html:

    
    

提交回复
热议问题