Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

108
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda