-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpoc.html
204 lines (185 loc) · 6.11 KB
/
poc.html
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<html>
<head>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
body {
background-color: #fafafa;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
header,
footer {
background-color: #fff;
}
#pageBg,
header nav,
footer p {
max-width: 80%;
margin: 0 auto;
padding: 10px;
}
header nav li { display: inline-block; width: 49%; }
li.logo { text-align: left; }
li.edit { text-align: right; }
li.edit a { font-size: 1.4em;
text-decoration: none;
color: #CA0035;}
.logo a {
font-size: 2em;
text-decoration: none;
color: #CA0035;
}
.logo img {
vertical-align: middle;
margin-right: 12px
}
.edit img {
vertical-align: middle;
margin-right: 5px;
}
footer p {
text-align: center;
}
#pageBg ul,
header ul {
list-style: none;
}
.categories {
display: inline-block;
width: 150px;
}
.categories h3 {
border-bottom: 1px solid #aaa;
padding: 8px 8px 8px 0;
}
.categories ul li {
padding: 4px 0;
}
#main {
display: inline-block;
width: 80%;
vertical-align: top;
margin-left: 20px;
}
.postSection {
padding: 10px;
background-color: #fff;
margin: 10px 0;
border: 1px solid #eee;
border-radius: 4px;
}
.excerpt {
margin-top: 10px;
line-height: 1.5em;
}
</style>
</head>
<body>
<header>
<nav>
<ul>
<li class="logo">
<a href="#">
<img src="public/logo64.png" />Readable</a>
</li>
<li class="edit">
<a href="#">
<img src="public/pencil.png" />Post</a>
</li>
</ul>
</nav>
</header>
<div id="pageBg">
<aside class="categories">
<h3>Categories</h3>
<nav>
<ul>
<li>react
</li>
<li>redux
</li>
<li>udacity
</li>
</ul>
</nav>
</aside>
<section id="main">
<div class="postSection">
<div class="post">
<h3>
How to pass props to {this.props.children}
</h3>
<div class="excerpt">
I'm trying to find the proper way to define some components which could be used in a generic way:
<Parent>
<Child value="1">
<Child value="2">
</Parent>
There is a logic ...
</div>
</div>
</div>
<div class="postSection">
<div class="post">
<h3>
Programmatically navigate using react router
</h3>
<div class="excerpt">
With react-router I can use the Link element to create links that are natively handled by react router. I see internally
it calls this.context.transitionTo(...). I want to do a navigation, but not ...
</div>
</div>
</div>
<div class="postSection">
<div class="post">
<h3>
React.js inline style best practices
</h3>
<div class="excerpt">
I'm aware that you can specify styles within React classes, like this: var MyDiv = React.createClass({ render: function()
{ var style = { color: 'white', fontSize: 200 }; ...
</div>
</div>
</div>
<div class="postSection">
<div class="post">
<h3>
What is the difference between using constructor vs getInitialState in React / React Native?
</h3>
<div class="excerpt">
I've seen both used interchangeably. What are the main use cases for both? Are there advantages / disadvantages? Is one a
better practice?
</div>
</div>
</div>
<div class="postSection">
<div class="post">
<h3>
Why do we need middleware for async flow in Redux?
</h3>
<div class="excerpt">
According to the docs, "Without middleware, Redux store only supports synchronous data flow". I don't understand why this
is the case. Why can't the container component call the async API, and then ...
</div>
</div>
</div>
<div class="postSection">
<div class="post">
<h3>
Pros/cons of using redux-saga with ES6 generators vs redux-thunk with ES2017 async/await
</h3>
<div class="excerpt">
There is a lot of talk about the latest kid in redux town right now, yelouafi/redux-saga. It uses generator functions for
listening to/dispatching actions. Before I wrap my head around it, I would ...
</div>
</div>
</div>
</section>
</div>
<footer>
<p>© 2017 Made with ♥ by Deeksha Prabhakar</p>
</footer>
</body>
</html>