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

106
Views
React Native property values in quotes vs braces

I'm currently learning React Native and wondering why some props have values in quotes "" and some have their values in curly braces {}.

Is there a standard to when I should be using quotes vs braces?

<Button title="Press me" onPress={() => console.log("Hello")}/>

For example, in the line above the title is written using quotes but the onPress property uses the curly braces.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Quotes are for when you're passing a simple string.

Braces are for when you want to run Javascript code. For example if you wanted to pass a variable as a prop, you'd need to use braces.

I personally try to use quotes whenever possible, but most of the times you need to use braces.

about 4 years ago · Juan Pablo Isaza Report
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!