I want to use Rescript/ReasonML with the react library Material UI. I am having to include each react component as such:
module Card = {
[@bs.module "@material-ui/core/Card"] [@react.component]
external make: (~className: string=?, ~variant: string=?, ~children: React.element) =>
React.element = "default";
};
It’s a lot of work as each component has different attributes.
- Am I doing this correctly? Or is there an easier way?
- Material UI is a very popular react library for Material Design. Maybe someone else already has done this work. Do you know if that is the case?