Skip to content

Instantly share code, notes, and snippets.

@FermiDirak
Last active February 10, 2020 06:48
Show Gist options
  • Save FermiDirak/79b20d999db3cdfd2f0a49e8684c662c to your computer and use it in GitHub Desktop.
Save FermiDirak/79b20d999db3cdfd2f0a49e8684c662c to your computer and use it in GitHub Desktop.
esh esh esh esh esh
/** 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