We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a40d4 commit e7dd7b6Copy full SHA for e7dd7b6
demo/app.jsx
@@ -214,7 +214,7 @@ class App extends React.Component {
214
215
return (
216
<div>
217
- <V2></V2>
+ <V2 daemon={daemon}></V2>
218
219
<h1>Arduino Create Plugin Client Demo</h1>
220
demo/v2/v2.jsx
@@ -1,14 +1,27 @@
1
import React from 'react';
2
3
class V2 extends React.Component {
4
+ constructor() {
5
+ super();
6
+ this.state = {
7
+ indexes: []
8
+ };
9
+
10
+ console.debug(this)
11
+ }
12
render() {
13
+ const indexes = this.state.indexes.map((index, i) =>
14
+ <li key={i}>
15
+ {index}
16
+ </li>);
17
18
19
<section>
20
<h2>V2</h2>
21
22
<h3>Indexes</h3>
23
<ul>
-
24
+ { indexes }
25
</ul>
26
</section>
27
0 commit comments