Having this component:
import React from "react";
import { Popup } from "semantic-ui-react";
const MyComponent = () => {
const value = "TEST";
return (
<Popup
content={`This is the data: ${value}`}
on="click"
pinned
trigger={<div>{value}</div>}
/>
);
}
export default MyComponent;
I want to show the content
data on multiple lines but is seems to not work.
Tried so far:
content={`This{"\n"}is the data: ${value}`}
content={`This \n is the data: ${value}`}
Any ideas?
` element instead of `\n` – ibrahim mahrir Jun 23 '20 at 18:21
is the data: ${value}`}. still not working – Leo Messi Jun 23 '20 at 18:29