So I coded two different Js files with tailwind
one for desktop and one for mobile
How can I render the desktop file and the mobile file when the screen is big and small respectively?
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (3)
Are you using some framework like React or Svelte? If yes there are helpful hooks.
You can use window.innerWidth to check screen size then conditionally render file based on it
Tailwind lets you apply breakpoints:
tailwindcss.com/docs/responsive-de...