Skip to content

Instantly share code, notes, and snippets.

@sisi-sh
Created August 12, 2019 22:40
Show Gist options
  • Select an option

  • Save sisi-sh/cd59cc6cfef4956d3432c7e49188fef4 to your computer and use it in GitHub Desktop.

Select an option

Save sisi-sh/cd59cc6cfef4956d3432c7e49188fef4 to your computer and use it in GitHub Desktop.
import React, { useState, useEffect } from "react"
// eslint-disable-next-line
import { css, jsx } from "@emotion/core"
import styled from "@emotion/styled"
import tw from "tailwind.macro"
/* @jsx jsx */
const Wrapper = styled.div`
${tw`bg-gray-200 rounded-sm block`}
`
export default ({ key, title, author, time }) => (
<Wrapper>
<h3>{{ title }}</h3>
<div css={tw`flex`}>
<p>{{ author }}</p>
<span> - </span>
<p>{{ time }}</p>
</div>
</Wrapper>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment