There is a project where we use Next.js. In this project, Internet Explorer view is in a very bad state due to various React.js packages. (For example: React-Slick settings, tag etc.)
I'm also thinking of something to check if the browser is IE but unfortunately the "react-device-detect" package didn't work as it is SSR.
Example:
import {isIE} from "react-device-detect"
<section className="home">
{isIE ? (
<div>
<p>Google Chrome, Firefox, etc...</p>
</div>
) : (
<div>
<p>Internet Explorer</p>
</div>
)}
</section>
When I do console.log, it understands whether the browser is IE or not, but it does not fulfill its task. For example: If the browser is IE, we want to render "X", but both Chrome and IE render X.)
How can I detect that the browser is Internet Explorer and provide this browser specific control on Next.js (SSR)? Thanks.