以前,我是[@bs.as "in"]
这样使用的。
[@bs.deriving abstract]
type cssTransitionProps = {
[@bs.as "in"]
_in: bool,
timeout: int,
classNames: string,
};
我怎么能在这里做类似的事情?
module CSSTransition = {
[@bs.module "react-transition-group"] [@react.component]
external make:
(
~_in: bool,
~timeout: int,
~classNames: string,
~children: React.element
) =>
React.element =
"CSSTransition";
};