Skip to content

Instantly share code, notes, and snippets.

@wolverineks
Last active October 13, 2017 23:41
Show Gist options
  • Save wolverineks/e0a89b40de45d200ddc3fcd6b0eba6cb to your computer and use it in GitHub Desktop.
Save wolverineks/e0a89b40de45d200ddc3fcd6b0eba6cb to your computer and use it in GitHub Desktop.
react-alias-components-after
import {
AlertContainer,
AlertHeader as Header,
AlertIcon as Icon,
AlertText as Text
AlertBody as Body,
AlertFooter as Footer
} from '../Alert/'
import {SubmitButton, CancelButton} from '../Buttons'
export default class Alert extends Component {
render () {
return <AlertContainer>
<Header>
<Icon />
<Text>
{alertHeaderText}
</Text>
</Header>
<Body>
<Text>
{alertBodyText}
</Text>
</Body>
<Footer>
<CancelButton onPress={...} />
<SubmitButton onPress={...} />
</Footer>
</AlertContainer>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment