Created
March 5, 2018 13:42
-
-
Save oneybee/31150e3d19626dcb0dc93b2e3f5bf87e to your computer and use it in GitHub Desktop.
reactapp/src/components/Home.js
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
import React from 'react'; | |
import Interactive from 'react-interactive'; | |
import { Link } from 'react-router-dom'; | |
import { Code } from '../styles/style'; | |
import s from '../styles/home.style'; | |
export default function Home() { | |
const repoReadmeLink = text => ( | |
<Interactive | |
as="a" | |
{...s.link} | |
href="https://github.com/oneybee/reactapp#readme" | |
>{text}</Interactive> | |
); | |
return ( | |
<div> | |
<p style={s.p}> | |
이 페이지는 '한발 먼저 가본 문과생이 알려주는, 데이터 시각화 - 아무것도 모르고 react 시작하기' 를 구현한 페이지입니다. | |
자신의 코드와 비교도 해보고 clone해서 뜯어보고 수정해보시면 좋은 공부가 될 것입니다. | |
</p> | |
<p style={s.p}> | |
한발 먼저 가본 문과생이 알려주는, 데이터 시각화 - 아무것도 모르고 react 시작하기{repoReadmeLink('repository readme')} | |
</p> | |
<div style={s.pageLinkContainer}> | |
<Interactive | |
as={Link} | |
{...s.link} | |
to="/example" | |
>Example page</Interactive> | |
</div> | |
<div style={s.pageLinkContainer}> | |
<Interactive | |
as={Link} | |
{...s.link} | |
to="/example/two-deep?field1=foo&field2=bar#boom!" | |
>Example two deep with query and hash</Interactive> | |
</div> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment