Created
August 12, 2019 22:40
-
-
Save sisi-sh/cd59cc6cfef4956d3432c7e49188fef4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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