How to check if user has enabled JS on page?

In NextJs / React how can I check if the user has enabled JS and display some kind of message or maybe even hide the whole site until it's enabled?

I tried
<noscript>You need to enabled JavaScript to use this site.</noscript>


But it doesn't really do anything no matter where I put it...
Was this page helpful?