Réponse
style= {{color : red}}
Colonne
Explication
The outer curly braces inject JavaScript into JSX. They say, “everything between us should be read as JavaScript, not JSX.”
The inner curly braces create a JavaScript object literal. They make this a valid JavaScript object:
{ color: 'red' }
If you inject an object literal into JSX, and your entire injection is only that object literal, then you will end up with double curly braces.
Question
Syntaxe pour injecter l'objet littéral {color : red} comme valeur de l'attribut style dans JSX
Thématique