mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-08 18:34:06 +08:00
15 lines
360 B
TypeScript
15 lines
360 B
TypeScript
|
|
import * as React from "react";
|
|
import * as CopyToClipboard from "react-copy-to-clipboard";
|
|
|
|
export class Test extends React.Component<any, any> {
|
|
render() {
|
|
return (
|
|
<CopyToClipboard text={"Hello World"}
|
|
onCopy={() => {}}>
|
|
<span>Copy to clipboard with span</span>
|
|
</CopyToClipboard>
|
|
);
|
|
}
|
|
}
|