Previously, I was using [@bs.as "in"]
like so.
[@bs.deriving abstract]
type cssTransitionProps = {
[@bs.as "in"]
_in: bool,
timeout: int,
classNames: string,
};
How can I do something similar here?
module CSSTransition = {
[@bs.module "react-transition-group"] [@react.component]
external make:
(
~_in: bool,
~timeout: int,
~classNames: string,
~children: React.element
) =>
React.element =
"CSSTransition";
};