Last active
February 10, 2020 06:48
-
-
Save FermiDirak/79b20d999db3cdfd2f0a49e8684c662c to your computer and use it in GitHub Desktop.
esh esh esh esh esh
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
/** Proposal for new JSX syntax for css */ | |
import * as React from 'react'; | |
import {css} from '@emotion/core'; | |
import Avatar from "./Avatar"; | |
import Text from "./Text"; | |
type Props = { | |
name: string, | |
email: string, | |
title: string, | |
}; | |
function ProfileCard({name, email, title}: Props) { | |
return ( | |
<section:container> | |
<Avatar /> | |
<div:content> | |
<Text>{name}</Text> | |
<div:sub_content> | |
<Text>{email}</Text> | |
<Text>{title}</Text> | |
</div> | |
</div> | |
</section> | |
); | |
} | |
const styles = { | |
container: css` | |
`, | |
content: css` | |
`, | |
subcontent: css` | |
`, | |
}; | |
export default ProfileCard; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment