My whole project is using Pure Javascript and i would like try to create BizCharts in Index.js (Mix React) but it doesn't allow to.
Hence, i found this method useful to create React Element in Js. But i have no idea how to implement it. Link -> https://jsfiddle.net/charlos/kp7thgqx
My index.js
const e = React.createElement;
class LikeButton extends React.Component {
constructor(props) {
super(props);
this.state = { liked: false };
}
render() {
if (this.state.liked) {
return 'You liked comment number ' + this.props.commentID;
}
return e(
'button',
{ onClick: () => this.setState({ liked: true }) },
'Like'
// Render element here , i have no idea how to create chart elements with unknown attributes
// 'Chart',
// { height: 400 , weight:300 },
// ''
// i tried like this ... hmmm looks silly and it doenst work lol
);
}
}
Need more ideas and inspiration. I am stuck for days, just beginner to React. Any help is appreciate!
Ideally product : https://bizcharts.net/product/bizcharts/demo/61