Hi everybody,
I try to make use of react-chartjs-2 in a reason react context. I have the following react + react-chartjs-2 snippet which works:
import React from “react”;
import { render } from “react-dom”;
import { Line } from “react-chartjs-2”;
const data = {
labels: [“January”, “February”, “March”, “April”, “May”, “June”, “July”],
datasets: [
{
label: “My First dataset”,
data: [65, 59, 80, 81, 56, 55, 40]
}
]
};
const App = () => (
render(, document.getElementById(“root”));
How can I do the same in ReasonReact? Especially the JSX usage <Line …> is an obstacle for me?
How can I import this with reasonreat/bucklescript?
I could not manage to do this with. [@bs.module] external.
Could anyone give a hint if this is doable?
Thanks in advance
Daniel