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 d06ccac commit be5a129Copy full SHA for be5a129
react.js
@@ -52,12 +52,12 @@ var MdReact = function(md, options) {
52
return getCollector(collector, result, i);
53
else
54
return getCollector(collector, [result], i);
55
- }.bind(this), []).map(function(item) {
+ }.bind(this), []).map(function(item, index) {
56
//console.log('last step item: ', item);
57
if(item.length) {
58
var html = item.join('');
59
//console.log('html: ', html);
60
- return React.createElement("p", {dangerouslySetInnerHTML: {__html: html}})
+ return React.createElement("p", {key: index, dangerouslySetInnerHTML: {__html: html}})
61
}
62
63
return item;
0 commit comments