-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.tsx
More file actions
32 lines (29 loc) · 786 Bytes
/
index.tsx
File metadata and controls
32 lines (29 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React from 'react';
import styled from 'styled-components';
import GlobalStyles from '../components/GlobalStyles';
import questions from '../questions.json';
import Poll from '../components/Poll';
const IndexPage = styled.div``;
export default () => (
<IndexPage>
<GlobalStyles />
<h1>Fullstack.io React Poll Challenge</h1>
<p>
Here is some text that is on the page in a paragraph tag. The poll will
appear within this context below.
</p>
<Poll qandas={questions} />
<p>
Here is the rest of the text on the page. We just have something down here
for context to see it in.
</p>
</IndexPage>
);
/**
* TIPS:
*
* You can load the check image like this:
*
* <img src={require('../static/check-circle.svg')} />
*
*/