What does this type of notation mean?
render() {
const {isAuth, error} = this.state;
document.getElementById("root").innerHTML = `
<div style="color: ${error && "red"}">
${isAuth ? "Welcome back!" : error}
</div>
`;
}
I do not understand why is it written like this. And what does it mean in a style property?