-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
42 lines (37 loc) · 1.16 KB
/
Copy pathindex.js
File metadata and controls
42 lines (37 loc) · 1.16 KB
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
33
34
35
36
37
38
39
40
41
42
import React from 'react';
import ReactDOM from 'react-dom';
import baconipsum from 'baconipsum';
import { ThemeProvider } from 'styled-components';
import Button
from './vanilla/Button';
// from './inline/Button';
// from './css-modules/Button';
// from './radium/Button';
// from './aphrodite/Button';
// from './styled-components/Button';
import './styled-components/global';
import Logo from './styled-components/Logo';
import Post from './styled-components/Post';
import FancyLink from './styled-components/FancyLink';
import theme from './styled-components/theme';
const App = () => (
<div>
{/* Can be styled by each included styling library (change imports above): */}
<Button>Styled Button</Button>
<hr/>
{/* Try adding 'alternate' attribute: */}
<Logo spin/>
<hr/>
{/* Try changing the 'theme' attribute to 'theme.light': */}
<ThemeProvider theme={theme.dark}>
<Post>
{baconipsum(50)}
</Post>
</ThemeProvider>
<hr/>
{/* Won't actually work (see console error on click): */}
<FancyLink to="">Home</FancyLink>
<hr/>
</div>
);
ReactDOM.render(<App/>, document.getElementById('root'));