JSFiddle - React, Tailwind, and code Playground

by Hugo Carneiro

JavaScript

const context = 'tablet'
const toHide = ['tablet', 'desktop']

console.log( toHide.indexOf(context) < 0 )