Answer the question
In order to leave comments, you need to log in
How to change content based on browser width without page reload?
I need the content to turn into a slider based on the width of the window
but that doesn't work without reloading the page, is there another way?
{window.innerWidth <= 690 ? (<h1>Lorem 1</h1>):(<h1>Lorem 2</h1>)}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question