Last active
December 18, 2017 21:02
-
-
Save brianlovin/f81be3993f8ee6a77c9611d909e03264 to your computer and use it in GitHub Desktop.
Flow type check
This file contains hidden or 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
// @flow | |
import * as React from 'react'; | |
type Props = { | |
... | |
} | |
class Foo extends React.Component<Props> { | |
render() { | |
return ( | |
<StyledComponent innerRef={scrollBody => (this.scrollBody = scrollBody)}> | |
... | |
</StyledComponent> | |
) | |
} | |
} | |
export default Foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment