-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquestion-answer.html
More file actions
260 lines (252 loc) · 10.7 KB
/
Copy pathquestion-answer.html
File metadata and controls
260 lines (252 loc) · 10.7 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
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Devs Community</title>
<link rel="stylesheet" href="css/style.css" />
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/themes/prism.min.css" /> -->
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/styles/default.min.css" /> -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/styles/base16/solarized-light.min.css"
/>
<script src="js/feather.min.js"></script>
</head>
<body>
<header>
<nav class="nav">
<div class="wrapper">
<ul class="nav-list">
<li class="nav-item">
<a href="#" class="nav-link menu-btn" id="toggleMenu">
<i data-feather="menu"></i>
</a>
<a href="#" class="nav-link">
<img class="logo-mobile" src="assets/logo-mobile.png" alt="Devs Community" />
<img class="logo" src="assets/logo.png" alt="Devs Community" />
</a>
</li>
<li class="nav-item login-section">
<a href="login.html" class="button login small"> Log in </a>
<a href="#signup" class="button signup small"> Sign up </a>
<a href="#" class="nav-link">
<i data-feather="search"></i>
</a>
</li>
</ul>
</div>
</nav>
</header>
<main class="wrapper">
<div class="sidebar hide">
<ul>
<li>
<a href="index.html">
<i data-feather="home"></i>
Home
</a>
</li>
<li class="active">
<a href="questions.html">
<i data-feather="help-circle"></i>
Questions
</a>
</li>
<li>
<a href="tags.html">
<i data-feather="tag"></i>
Tags
</a>
</li>
<li>
<a href="users.html">
<i data-feather="users"></i>
Users
</a>
</li>
</ul>
</div>
<div class="container">
<div class="title-bar">
<h1 class="main-title q-title">Open an existing app from a main one in React?</h1>
<div class="button-wrap">
<a href="ask-question.html" class="button ask">Ask Question</a>
</div>
</div>
<div class="status-bar">
<div class="asked">
<span>Asked</span>
today
</div>
<div class="active">
<span>Active</span>
today
</div>
<div class="viewed">
<span>Viewed</span>
9 times
</div>
</div>
<div class="content-body">
<div class="question-body">
<div class="post-left">
<a href="#"><i data-feather="chevron-up"></i></a>
<span>0</span>
<a href="#"><i data-feather="chevron-down"></i></a>
<a href="#"><i data-feather="bookmark"></i></a>
<a href="#"><i data-feather="clock"></i></a>
</div>
<div class="post-right">
<div class="post-body">
<p>
Axios sends an array of strings instead of an array of objects. I have an array of objects that
contains data about the event. I'm trying to send a request to the server via axios, but I get a array
of strings insteenter image description heread of objects at the output
</p>
<pre><code class="language-js">useEffect(() => {
document.title = `You clicked ${count} times`;
}, [count]); // Only re-run the effect if count changes
</code></pre>
<p>
I'm not a coder and have no idea how this would work, but it seems like it should be simple. Does
WordPress already offer something like this in a multi-site setup? I've been searching and searching
and cannot find a code example anywhere or an existing plug-in that describes this setup/solution.
</p>
</div>
<div class="post-tags">
<a href="#" class="p-tag">javascript</a>
<a href="#" class="p-tag">axios</a>
</div>
<div class="post-action-panel">
<div class="post-actions">
<a href="#">Share</a>
<a href="#">Edit</a>
<a href="#">Follow</a>
</div>
<div class="timestamps">
<div class="post-user edited">
<span>edited 12 mins ago</span>
<div class="user">
<div class="user-image">
<img src="assets/profile-min.jpg" width="32" alt="User" />
</div>
<div class="user-desc">
<a href="#" class="user-name">Arman</a>
<div class="scores">
<strong class="reputation" title="Reputation score 39"> 39</strong>
<span class="badge gold" title="1 gold badge">● 1</span>
<span class="badge silver" title="3 silver badges">● 3</span>
<span class="badge bronze" title="9 bronze badges">● 9</span>
</div>
</div>
</div>
</div>
<div class="post-user asked">
<span>asked 12 mins ago</span>
<div class="user">
<div class="user-image">
<img src="assets/profile-min.jpg" width="32" alt="User" />
</div>
<div class="user-desc">
<a href="#" class="user-name">Arman</a>
<div class="scores">
<strong class="reputation" title="Reputation score 39"> 39</strong>
<span class="badge gold" title="1 gold badge">● 1</span>
<span class="badge silver" title="3 silver badges">● 3</span>
<span class="badge bronze" title="9 bronze badges">● 9</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="separator"></div>
<div class="answer-body">
<div class="post-left">
<a href="#"><i data-feather="chevron-up"></i></a>
<span>0</span>
<a href="#"><i data-feather="chevron-down"></i></a>
<a href="#"><i data-feather="bookmark"></i></a>
<a href="#"><i data-feather="clock"></i></a>
</div>
<div class="post-right">
<div class="post-body">
<p>
Axios sends an array of strings instead of an array of objects. I have an array of objects that
contains data about the event. I'm trying to send a request to the server via axios, but I get a array
of strings insteenter image description heread of objects at the output
</p>
<pre><code class="language-js">useEffect(() => {
document.title = `You clicked ${count} times`;
}, [count]); // Only re-run the effect if count changes
</code></pre>
<p>
I'm not a coder and have no idea how this would work, but it seems like it should be simple. Does
WordPress already offer something like this in a multi-site setup? I've been searching and searching
and cannot find a code example anywhere or an existing plug-in that describes this setup/solution.
</p>
</div>
<div class="post-tags">
<a href="#" class="p-tag">javascript</a>
<a href="#" class="p-tag">axios</a>
</div>
<div class="post-action-panel">
<div class="post-actions">
<a href="#">Share</a>
<a href="#">Edit</a>
<a href="#">Follow</a>
</div>
<div class="timestamps">
<div class="post-user edited">
<span>edited 12 mins ago</span>
<div class="user">
<div class="user-image">
<img src="assets/profile-min.jpg" width="32" alt="User" />
</div>
<div class="user-desc">
<a href="#" class="user-name">Arman</a>
<div class="scores">
<strong class="reputation" title="Reputation score 39"> 39</strong>
<span class="badge gold" title="1 gold badge">● 1</span>
<span class="badge silver" title="3 silver badges">● 3</span>
<span class="badge bronze" title="9 bronze badges">● 9</span>
</div>
</div>
</div>
</div>
<div class="post-user answered">
<span>asked 12 mins ago</span>
<div class="user">
<div class="user-image">
<img src="assets/profile-min.jpg" width="32" alt="User" />
</div>
<div class="user-desc">
<a href="#" class="user-name">Arman</a>
<div class="scores">
<strong class="reputation" title="Reputation score 39"> 39</strong>
<span class="badge gold" title="1 gold badge">● 1</span>
<span class="badge silver" title="3 silver badges">● 3</span>
<span class="badge bronze" title="9 bronze badges">● 9</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<footer></footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/highlight.min.js"></script>
<script src="js/app.js"></script>
<script>
hljs.highlightAll();
</script>
</body>
</html>