Skip to content

Instantly share code, notes, and snippets.

@brianlovin
Last active December 18, 2017 21:02
Show Gist options
  • Save brianlovin/f81be3993f8ee6a77c9611d909e03264 to your computer and use it in GitHub Desktop.
Save brianlovin/f81be3993f8ee6a77c9611d909e03264 to your computer and use it in GitHub Desktop.
Flow type check
// @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