mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
Init with yo typescript-react-lib
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user