ReactJS support IE11/IE10/IE9/IE8

@php

$ua = htmlentities($_SERVER['HTTP_USER_AGENT'], ENT_QUOTES, 'UTF-8');

if (preg_match('~MSIE|Internet Explorer~i', $ua) || (strpos($ua, 'Trident') !== false )) {

//echo '<h3>Only for IE</h3>' . $ua;

echo'<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.4.0/polyfill.min.js"></script>';

}

@endphp

Leave a Reply

Your email address will not be published. Required fields are marked *