1
1
import React from 'react'
2
2
import styled from 'styled-components'
3
3
4
- import { Feature , Link , Heading , PreformattedText , Paragraph } from 'components'
4
+ import { Feature , Link , Heading , Paragraph } from 'components'
5
5
6
6
const Grid = styled . div `
7
7
display: flex;
@@ -39,41 +39,33 @@ const FeatureList = ({ ...props }) => (
39
39
icon = "react"
40
40
link = "https://facebook.github.io/react"
41
41
title = "React"
42
+ code = { '<MyComponent attr="value" />' }
42
43
>
43
44
The Facebook's JavaScript library for building user interfaces using components.
44
- < PreformattedText block wrap >
45
- { '<MyComponent attr="value" />' }
46
- </ PreformattedText >
47
45
</ StyledFeature >
48
46
< StyledFeature
49
47
icon = "react-router"
50
48
link = "https://github.com/ReactTraining/react-router"
51
49
title = "React Router"
50
+ code = { '<Route path="/sample-page" />' }
52
51
>
53
52
The most popular declarative routing library for React and React Native.
54
- < PreformattedText block wrap >
55
- { '<Route path="/sample-page" />' }
56
- </ PreformattedText >
57
53
</ StyledFeature >
58
54
< StyledFeature
59
55
icon = "webpack"
60
56
link = "https://webpack.github.io/"
61
57
title = "Webpack"
58
+ code = "npm run build"
62
59
>
63
60
The awesome module bundler with < Link href = "https://webpack.github.io/docs/hot-module-replacement.html" > Hot Module Replacement</ Link > enabled.
64
- < PreformattedText block >
65
- npm run build
66
- </ PreformattedText >
67
61
</ StyledFeature >
68
62
< StyledFeature
69
63
icon = "jest"
70
64
link = "https://facebook.github.io/jest"
71
65
title = "Jest"
66
+ code = "npm run test"
72
67
>
73
68
The great testing framework used by Facebook to test all their Javascript code.
74
- < PreformattedText block >
75
- npm run test
76
- </ PreformattedText >
77
69
</ StyledFeature >
78
70
</ Grid >
79
71
< StyledHeading > Optional features</ StyledHeading >
@@ -85,21 +77,17 @@ const FeatureList = ({ ...props }) => (
85
77
icon = "redux"
86
78
link = "https://github.com/diegohaz/arc/tree/redux"
87
79
title = "Redux"
80
+ code = "git clone -b redux https://github.com/diegohaz/arc my-app"
88
81
>
89
82
The predictable state container for JavaScript apps.
90
- < PreformattedText block >
91
- git clone -b redux https://github.com/diegohaz/arc my-app
92
- </ PreformattedText >
93
83
</ StyledFeature >
94
84
< StyledFeature
95
85
icon = "dist"
96
86
link = "https://github.com/diegohaz/arc/tree/redux-ssr"
97
87
title = "Server Side Rendering"
88
+ code = "git clone -b redux-ssr https://github.com/diegohaz/arc my-app"
98
89
>
99
90
Write once and run both on server and client.
100
- < PreformattedText block >
101
- git clone -b redux-ssr https://github.com/diegohaz/arc my-app
102
- </ PreformattedText >
103
91
</ StyledFeature >
104
92
</ Grid >
105
93
</ div >
0 commit comments