Init with yo typescript-react-lib

This commit is contained in:
2019-07-19 12:49:20 +05:30
commit 0ad6620437
35 changed files with 12942 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import * as PropTypes from 'prop-types'
import * as React from 'react'
interface Props {
text: string
}
const C: React.SFC<Props> = ({ text }) => <p>{text}</p>
C.propTypes = {
text: PropTypes.string.isRequired
}
export default C