mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
477 B
TypeScript
18 lines
477 B
TypeScript
import * as React from "react";
|
|
import * as CountTo from "react-count-to";
|
|
|
|
export class Test extends React.Component<any> {
|
|
render() {
|
|
const easing = (value: number) => value * value;
|
|
|
|
return (
|
|
<div>
|
|
<CountTo to={100} speed={1000} />
|
|
<CountTo to={100} speed={1000} delay={50} easing={easing}>
|
|
{(value) => <strong>{value}</strong>}
|
|
</CountTo>
|
|
</div>
|
|
);
|
|
}
|
|
}
|