Created
April 19, 2018 03:40
-
-
Save ioness/a9dcc13f02ddfd2c82bd847d635b4706 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react' | |
class Test extends React.Component<any, any> { | |
constructor (props: any) { | |
super(props) | |
} | |
render () { | |
return <Register foo='This is '>my beloved child</Register> | |
} | |
} | |
const Register: any = ({ foo, children }: any) => { | |
return <div>{foo} + {children}</div> | |
} | |
export default Test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment