回答編集履歴
1
適切な変数名に変更
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
const style = Object.entries(this.state.style).map(
|
21
|
+
const style = Object.entries(this.state.style).map(prop => `${prop[0]}: ${prop[1]}`).join(';');
|
22
22
|
|
23
23
|
const styledDiv = `<div style="${style}"></div>`
|
24
24
|
|