mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 22:01:49 +00:00
19 lines
295 B
TypeScript
19 lines
295 B
TypeScript
// import * as PropTypes from "prop-types";
|
|
import * as React from "react";
|
|
|
|
interface Props {
|
|
text: string;
|
|
}
|
|
|
|
class C extends React.Component<Props> {
|
|
render() {
|
|
return <p>{this.props.text}</p>;
|
|
}
|
|
}
|
|
|
|
// C.propTypes = {
|
|
// text: PropTypes.string.isRequired
|
|
// };
|
|
|
|
export default C;
|