mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
471 B
TypeScript
18 lines
471 B
TypeScript
import * as React from "react";
|
|
import * as CountUp from "react-countup";
|
|
|
|
export class Test extends React.Component<any> {
|
|
render() {
|
|
return (
|
|
<CountUp start={0} end={100}>
|
|
{({ countUpRef, start }) => (
|
|
<div>
|
|
<span ref={countUpRef} />
|
|
<button onClick={start}>Start</button>
|
|
</div>
|
|
)}
|
|
</CountUp>
|
|
);
|
|
}
|
|
}
|