mikemaccana / outdated-browser-rework

Detects outdated browsers and advises users to upgrade to a new version. Handles mobile devices!
MIT License
224 stars 62 forks source link

Usage with React #85

Open jaexplorer opened 4 years ago

jaexplorer commented 4 years ago

Hi,

I was just wondering how I could import this and use this within my react app?

senigami commented 4 years ago

We currently run this on our react app and if you want full support in old browsers that also do not support react then you will need to ensure that this script executes prior to react scripts being loaded in. As the instructions mention it should be the FIRST script to load on the site before any other script either in your index .html, .pug file, or however you have set up your project.