How to perform a function by screen size javascript/bootstrap?
this is the div :
<div className="col-sm hidden-md hidden-lg"></div>
and i want to set this function (only in small screen) :
const [ navOpen, setNavOpen ] = useState(true)
the code is in reactjs, how can i call a function when the screen is small?