Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

235
Views
Inline Conditional Media Query CSS is not working in ReactJS

I am trying to solve the problem of height:100vh in Mobile Browser Like Safari, Chrome So I have written Dynamic CSS using JavaScript But It is not working in ReactJS

1. const homePage = {
2.    height:"calc(" + window.innerHeight + " - 80px)",
3.    '@media screen and (max-width:768px)':{
4.      height:"calc(" + window.innerHeight + " - 60px"
5.    },
6. }
7. return (
8.    <Fragment>
9.      <section className="nad-home-page" style={homePage}>
10.        <div className='container>...code going so on

enter image description here

Can you let me know What I am doing wrong ?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!