mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
452 B
TypeScript
17 lines
452 B
TypeScript
import * as React from "react";
|
|
import { spring } from "react-motion";
|
|
import Transition from "react-motion-ui-pack";
|
|
|
|
class ReactMotionUIPackTransition extends React.Component {
|
|
render() {
|
|
return (
|
|
<Transition
|
|
enter={{ opacity: 1 }}
|
|
leave={{ opacity: spring(0, { stiffness: 120, damping: 9 }) }}
|
|
>
|
|
<div>Hello world.</div>
|
|
</Transition>
|
|
);
|
|
}
|
|
}
|