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

153
Views
}' expected. JavaScript

I was trying to use the style tag in order to make the website I'm working for, much more mobile-friendly, however, the style tag was giving me errors

const styleCheck = () => {
        return (
            <div>
                <style>
                    Grid {
                        display: flex
                    }
                </style>
            </div>
        )
    }

The idea is that Grid is a different tag that I use later on, in the return value for the main function and hence I wanted to change it's location depending on whether the user is browsing in mobile mode or on a larger screen like a laptop.

However, the program is giving me error on the display:flex line. It states that }' expected and on the } right below the line it gives the error: Unexpected token. Did you mean {'}'} or &rbrace;?

I could, of course, give more code if necessary, but I'm curious as to the reasoning for this error in the style tag.

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!