Skip to content

Instantly share code, notes, and snippets.

@kuuup-at-work
Last active July 22, 2016 07:53
Show Gist options
  • Save kuuup-at-work/4a50808329495982906ea255d03385be to your computer and use it in GitHub Desktop.
Save kuuup-at-work/4a50808329495982906ea255d03385be to your computer and use it in GitHub Desktop.
// ... imports
type Props = {
selected: boolean,
type: number,
uiState: UiState,
style: Object
}
export default class AdmLayer extends Component {
static defaultProps = {
selected: false,
uiState: new UiState()
}
// ... constructor, render, ...
}
// ... imports
export default class Root extends Component {
constructor(props: any) {
super(props);
}
render() {
return (
<div>
/*
FLOW Warnings
property `selected` Property not found in props of React element `AdmLayer`at line 55 col 41
property `uiState` Property not found in props of React element `AdmLayer`at line 55 col 41
*/
<AdmLayer type={ 1 } style={{ color: 'orange' }} />
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment