'how to write html tags inside a react object
I am trying to create a multi-language website so am using objects and arrays to achieve that however, I want to add span tags inside the react objects. I tried backticks but it's not working
let content = {
english:{
title:"Welcome to G-tech",
text:'is an Electronics repair shop specializing in Computer, Phone, and Tablet repairs.',
button:"mail-in"
},
francais:{
title: 'Welcome to G-tech',
text:'Il s'agit d'un atelier de réparation d'appareils électroniques spécialisé dans la réparation d'ordinateurs, de téléphones et de tablettes. ',
button:"mail-in"
},
arab:{
title: 'g-tech مرحبا بكم في ',
text:'هو خدمة لتصليح الهواتف والحواسيب '
button:"mail-in"
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
