html attribut to react. node code example
Example 1: dangerouslySetInnerHTML
function createMarkup() {
return {
__html: 'First · Second' };
};
<div dangerouslySetInnerHTML={createMarkup()} />
Example 2: syntax attribute same as name react
const x = 42;
const obj = { x, y: 1337 };
console.log(obj); // result { x: 42, y: 1337 }