UNPKG

use-screen-size

Version:

A React hook to get the current screen size and breakpoint or write conditional code based on screen size

13 lines (11 loc) 422 B
// ANSI escape codes for styling const reset = '\x1b[0m'; const bright = '\x1b[1m'; const fgGreen = '\x1b[32m'; const fgCyan = '\x1b[36m'; const fgMagenta = '\x1b[35m'; console.log(` ${fgGreen}${bright}Thank you for installing use-screen-size!${reset} ${fgCyan}If you find this package helpful, please consider starring our GitHub repository:${reset} ${fgMagenta}https://github.com/kingflamez/use-screen-size${reset} `);