Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import React, {Component} from "react";
// Card.tsx
type Props = {
children: import('react').ReactNode
}
class Card extends Component<Props> {
render() {
const {children} = this.props;
return <div>{children}</div>;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment