Want to make extra sure you aren't using Javascript? This package is for you!
npm install is-not-javascript
var isJavascript = require('is-not-javascript')
isNotJavascript(); // false
Thanks to the glorious community, is-not-javascript
has 100% support for React!
const IsNotJavascriptComponent = () => {
const notJS = useIsNotJavascript();
return <p>{notJS ? "Is Not Javascript" : "Is Javascript"}</p>;
};
Run npm test
to run a fully-comprehensive test suite, making sure all the possible edge cases are covered.