I have the following code in react js:
'use strict';
module.exports = {
homePage: {
sliderTitle: 'Creative portfolio',
loginTitle: 'Do you already <b>have</b> an account?'
},
registrationPage: {
foo: 'bar'
}
};
When I try to use those labels I have
var EN = require('./en');
{EN.homePage.loginTitle}
but {EN.homePage.loginTitle} returns the string with b tags inside.
How can I apply this b tag to the word have?
loginTitle: {__html: 'Do you already <b>have</b> an account?'}, but the same problem.dangerouslySetInnerHTMLprop to the div? like<div dangerouslySetInnerHTML={EN.homePage.loginTitle} />