I am currently using Draftjs to decorate some key words, this turns them into spans. Within my span i'd like to use the Bootstrap 4 popover functionality. I have added a simple line and it did not work, the libraries etc are all added.
handleClick = (e) => {
e.preventDefault();
alert(e.target);
};
ColorComponent = (props) => {
return (
<span onClick={this.handleClick} style={this.styles.word}>{props.children}</span>
);
};
On click i want to be able to see a popover appear like shown here on the bootstrap 4 page. I've included the links below. I dont want to use independent libraries, i want to code this directly and avoid having to use a plugin