Last active
July 22, 2016 07:53
-
-
Save kuuup-at-work/4a50808329495982906ea255d03385be 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
// ... 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, ... | |
} |
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
// ... 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